Sierpinksi Triangle using Java brainstorming

Before you try to make it OOP style, you should define what parts you would like to reuse and what parts will be used just once. For example, you may always have just a single scene.

You may have a lot of triangles, so your triangle can be a class with properties for starting position and number of recursions. That is just an example, and you can have many variations!

1 Like