COMMANDS

- C - Change colour 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, execute it again and exit the block. Thus a block bounded by ‘[’ and ‘]’ is 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 colours 8 times.

MORE

- Documentation: github.com/susam/cfrs

- Built-in demos: #0, #1, #2, #3, #4, #5

- Community demos: susam.github.io/cfrs/demo.html