An implementation of CFRS[] using Scratch. Click green flag to clear the code Press < or left arrow key as Backspace Type any digit between 0 and 5 to see the corresponding demo. (Quoted from Official Help:) 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, 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 colours 8 times.
* CFR[] is a strict subset of CFRS[]. The only difference is that CFR[] does not have the S command. Original Implementation (by susam under the MIT License): https://susam.net/cfrs.html Complete Information: https://github.com/susam/cfrs