X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=58188d9f78edf3e3dba5718c33163e74f2872fe2;hp=9b33453d65559c8e8e80848f7423a0e032e5d60d;hb=396b22d11e8041a00b33ca874a5be3853c09d6c0;hpb=c9ce50e17952b0feeec68758444a50302a0aafba diff --git a/src/main.cpp b/src/main.cpp index 9b33453..58188d9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -81,11 +81,11 @@ int main(int argc, char ** argv) } else { - for(int i = 0; i < 1024; ++i) + for(int x = 0; x < 8; ++x) { - for (int j = 0; j < 1024; ++j) + for (int y = 0; y < 8; ++y) { - doc.Add(((i^j)&1)?RECT_OUTLINE:RECT_FILLED, Rect(0.2+i-512.0,0.2+j-512.0,0.6,0.6)); + doc.Add(static_cast((x^y)%3), Rect(0.2+x-4.0,0.2+y-4.0,0.6,0.6)); } }