simple octagon tesselation by logica

<?for($a=-5+3*$e=fgetc(STDIN)*3;$b<$a;){$e+=!(-($b>$a/2)+$x=$b++%3)*3*($b/$a*3%3-1);for($d=0;$d<$a-$e-!$x;)echo$e>$d|!($x xor$d++%3)?" ":"#";?>\x0d

<?}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page