Menu | JAQForum Ver 19.10.27 |
Forum Index : Microcontroller and PC projects : Penrose Tiling Program for CMM2
I wrote this some time ago but it needed cleaning up, which I finally got done. You can generate Penrose P2 tilings starting from any of the 7 unique vertices, and choose a tile size and color scheme. Enjoy! -Bill Penrose.zip |
||||||
Nicely done, and Roger Penrose is one smart cookie... Here's a good video on the tiles Veritasium - Penrose Tiles |
||||||
Hi Bill, Did you try to run this at MMB4W, or only on CMM2 ? It does not work immediatly on MMB4W , I may have to debug... Volhout |
||||||
For MMB4W the main problem is detecting ENTER In MMB4W the enter key returns LF not CR although that might vary from PC to PC. To make it run, I added const LINEFEED = 10 and CASE ENTER, LINEFEED to the startscreen sub. There are a few font sizes and MODE choices to make but with that one change, it does run on MMB4W Jim |
||||||
Thanks, Jim! I do my best to make sure my programs run correctly on the CMM2. I do not test for running on any other hardware, sorry. I don't own the hardware to test it on, and I don't really have the time. However, I am always glad when somebody takes up the porting job. I try to make my code easy to port with liberal use of constants, comments, and in general good structuring. -Bill |
||||||