Penrose Tiling Program for CMM2


Author Message
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 393
Posted: 10:54pm 20 Apr 2024      

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

Malibu
Senior Member

Joined: 07/07/2018
Location: Australia
Posts: 169
Posted: 04:57am 21 Apr 2024      

Nicely done, and Roger Penrose is one smart cookie...
Here's a good video on the tiles
Veritasium - Penrose Tiles

Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3811
Posted: 01:34pm 22 Apr 2024      

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

TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5962
Posted: 10:49pm 22 Apr 2024      

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

William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 393
Posted: 09:03pm 01 May 2024      

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