Cat now plays with turtles.
I’ve just made a new release of Cat (version 0.10.4). I’ve fixed several bugs in the standard library, added some new functions, renamed a couple of functions, and added a turtle graphics library (a la Logo). The graphics library is still in its early stages but I was able to generate the following image:
The program for generating this pattern is:
#load graphics.cat
window [blue pc 5 pw [100 square 15 rt] 24 repeat] render
“c:\tmp\tmp.png” save
- window = create graphics windowÂ
- pc = set pen color
- pw = set pen width
- square = draw square
- rt = right turn
- render = tell window to execute the function