GMU:Einführung ins Programmieren mit Processing/Seminar: Difference between revisions

From Medien Wiki
No edit summary
Line 392: Line 392:


--Dianna Mertz
--Dianna Mertz
=== Textile on Pizza Chilino  ===
[[File:Joey_Pizza.png]
If we focus closely to this Chilio Pizza, we would see that the pizza contains with many layers. Each layer is decorated with vegetables, cheese and meat. However, the distance between each asset  doesn't random itself, there is a hidden pattern which each edible lays far from each other by almost constant distance.
To make sketch of this pizza, we would follow these processes below:
1) Make a pizza flour base layer by drawing an ellipse and fill with cream or yellow color. <br/>'''Function''': ''ellipse()'',''fill()'' <br/><br/>
2) Put a concentrate tomato sauce by drawing another layer on top of pizza flour, after that, fill red color. <br/>'''Function''': ''ellipse()'',''fill()'',  ''pushMatrix()'', ''popMatrix()''<br/><br/>
3) Create salamis() function by drawing ellipses and put little white spots on around salamis' surface. <br/>'''Function''': ''ellipse()'',''fill()'', ''point()'', random() <br/><br/>
4) Spread salamis around the pizza with random() function BUT not further than pizza flour edge(2*PI*radian). Furthermore, we could use ''For loop'' or ''While loop'' iteration to define a number of salamis we need. <br/>'''Function''': ''salamis()'', ''random()'' <br/><br/>
5) Repeat 3) and 4) to drop more tomatoes, chilis, basils and mozarella cheese layer by layer. <br/>'''Function''': ''tomatoes()'', ''chilis()'', ''basils()'', ''mozarella()'', ''random()''<br/><br/>
6) Enjoy your Pizza Chilino :)