Just C++ – Penrose tiling from python to C++ & Qt



Today I ported some code from python to draw a basic penrose tiling. This is going to be the base for this years t-shirt for the Meeting C++ conference!

The Color Enum, Triangle class and definition of complex:
using complex = std::complex <doubl>;

enum class Color{RED,BLUE};
struct Triangle
{
Color color;
complex a,b,c;
};

Python Penrose tiling blog post:

2 Comments

Leave a Reply

Your email address will not be published.


*