Space to paste code WARM: THIS PROJECT HAS MANY BUGS AND IT IS SLOW (sorry I'm lazy and bad code) COMMANDS C - Change color to the next one from the cyclic sequence: black, blue, green, cyan, red, magenta, yellow, and white. F - Move forward by one cell and paint the new cell. R - Rotate clockwise by 45°. S - Sleep for 20 ms. [ - Begin a repeatable block and continue executing subsequent code normally. ] - Go back to the beginning of the current repeatable block, repeat it once more, and exit the block. A block bounded by ‘[’ and ‘]’ behaves like a loop that runs twice before the block exits. EXAMPLES [FFF] - A column of 6 white cells. CC[[[[[[FS]]]]]] - A gradually rising column of 64 cells. [[[[[[[[FFF]]R]]][[[SSS]]]CC]]] - An octagon that changes colors 8 times.
Original by susam (https://github.com/susam): CFR https://susam.net/cfr.html [github.com/susam/cfr] CFRS https://susam.net/cfrs.html (for animation) [github.com/susam/cfrs]