• Create Account

### #ActualStroppy Katamari

Posted 13 December 2012 - 08:06 PM

Couldn't resist bringing this thread to its logical conclusion by one-lining Álvaro's code. 87-fold code compression relative to the initial post.
rects[k]->set_fill_color(!((k+k/8)%2) ? Color::red : Color::white);
edit: and since it's a beginner thread, public service announcement: mangling code like I just did is evil and has absolutely no point besides comedic purposes; don't do this if you intend to actually use the code for something.

### #1Stroppy Katamari

Posted 13 December 2012 - 07:57 PM

Couldn't resist bringing this thread to its logical conclusion by one-lining Álvaro's code. 87-fold code compression relative to the initial post.
rects[k]->set_fill_color(!((k+k/8)%2) ? Color::red : Color::white);

PARTNERS