Download presentation
Presentation is loading. Please wait.
Published byCordelia Little Modified over 9 years ago
1
EPS 109 Final Project: An Attempt at Fractal Plants Natalie Mezaki SWEET CHERRIES
2
The Method Goals: Create a plant that showed fractal like self similarity Make that plant beautiful The Code: Two different scripts a function that draws the arms (branches and flowers) and shortens/rotates them as it iterates (modified twice for different colors and the other trees) Uses two rotation matrices to angle the branches, tries to color every other branch drawn a different color The main script which draws the stems, sets the background, and calls the plantarms function The Outcome: Original idea for the angles of the branches proved difficult to get right, so I decided to lengthen the stems into tree trunks and try to make something aesthetically pleasing but still reminiscent of a fractal plant
3
Sweet Cherries Run my movie: Open -plantarms.m -pinkarms.m -redarms.m Run -plant.m Change theta and eta for different shaped trees
4
A Learning Experience line([m1(1) m2(1)], [m1(2) m2(2)], 'Linewidth', 7, 'Color’, [.35.6.43]); line([n1(1) n2(1)], [n1(2) n2(2)], 'Linewidth', 4, 'Color', [.35.6.43]); line([p1(1) p2(1)], [p1(2) p2(2)], 'Linewidth', 4, 'Color’, [.35.6.43]);
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.