In this project you will create a function that simulates a scale and then use nested loops to make a pattern of scales. The particular type of scale you simulate is up to you. Reptiles, fish, armor, mermaids and dragons are all examples of things with scales. You may find slides 153 - 167 of the apjavaProcessing slide presentation helpful in completing this assignment.
- Your program will use a function void scale(int x, int y)to simulate a single scale. The argumentsxandywill be used to position the scale
- Your scale needs a shape that is either complex (uses bezier(),vertex(),curveVertex()or similiar) or composite (made by combining multiple simple shapes likerect()andellipse()). The shape should not be a simple polygon or ellipse.
- The pattern of scales needs to use nested loops
- If your program uses random numbers, all random numbers must be generated using the Math.random()function
- Fork this repository
- Open the Scales.pdefile. Copy and paste the code into Processing.
- Complete void setup(),void draw()andvoid scale(int x, int y).
- When you are happy with the program, copy and paste it back into the Scales.pdefile on GitHub.
- You will also need to modify index.htmlto customize your website with it's own title, headline and footer.
- The final step is to submit the URL for your website to google classroom.
Random variations in size and color are common in nature and will give your pattern a more realistic appearance. Feathers and hair are evolutionary developments of scales and could be simulated in this project as well.
