Skip to content

Draws recursive graphics using geometric transforms on polygons

Notifications You must be signed in to change notification settings

vickiwyang/sierpinski

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sierpinski

Transform2D.java is a library of static methods that performs geometric transforms (scaling, translation, and rotation) on polygons.

Art.java uses this library to create De Stijl-inspired line art. The program draws n-levels of rectangles that are randomly "split" horizontally or vertically, with each level scaling down to 50-90 percent of the previous level's size. Rectangle size, line thickness, and angle of split vary randomly across levels, so that a different graphic is produced each time the program is run.

For example, here are three variation of Art 1 through Art 9:

three runs of Art.java

Sierpinski.java recursively plots a Sierpinski triangle of order n.

About

Draws recursive graphics using geometric transforms on polygons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages