eps 109 final project: an attempt at fractal plants natalie mezaki sweet cherries

4
EPS 109 Final Project: An Attempt at Fractal Plants Natalie Mezaki SWEET CHERRIES

Upload: cordelia-little

Post on 05-Jan-2016

215 views

Category:

Documents


1 download

TRANSCRIPT

Sweet Cherries

EPS 109 Final Project:An Attempt at Fractal PlantsNatalie MezakiSweet CherriesThe MethodGoals: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 colorThe main script which draws the stems, sets the background, and calls the plantarms functionThe 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

Sweet Cherries

Run my movie:Open -plantarms.m-pinkarms.m-redarms.mRun-plant.mChange theta and eta for different shaped treesA 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]);