Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : Penrose Tiling Program for CMM2

Posted: 10:54pm
20 Apr 2024
Copy link to clipboard
William Leue
Guru

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
 
Posted: 04:57am
21 Apr 2024
Copy link to clipboard
Malibu
Senior Member

Nicely done, and Roger Penrose is one smart cookie...
Here's a good video on the tiles
Veritasium - Penrose Tiles
 
Posted: 01:34pm
22 Apr 2024
Copy link to clipboard
Volhout
Guru

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
 
Posted: 10:49pm
22 Apr 2024
Copy link to clipboard
TassyJim
Guru


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
 
Posted: 09:03pm
01 May 2024
Copy link to clipboard
William Leue
Guru

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
 


To reply to this topic, you need to log in.

© JAQ Software 2024