Skip to content

KennyCh13/Scales

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scales

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.

Program Requirements

  • Your program will use a function void scale(int x, int y) to simulate a single scale. The arguments x and y will 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 like rect() and ellipse()). 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

Suggested steps to start the assignment

  1. Fork this repository
  2. Open the Scales.pde file. Copy and paste the code into Processing.
  3. Complete void setup(), void draw() and void scale(int x, int y).
  4. When you are happy with the program, copy and paste it back into the Scales.pde file on GitHub.
  5. You will also need to modify index.html to customize your website with it's own title, headline and footer.
  6. The final step is to submit the URL for your website to google classroom.

Extensions

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.

Samples of Student Work

Tiffany
Andrew
Tyler
Michelle
Albert
Keneth
Alex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Other 0.2%