Code Monkey home page Code Monkey logo

scales's Introduction

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 - 176 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. Processing has a 3d mode. Another extension would be to make a 3d version of scales.

Samples of Student Work

Federico
Mikey
Kaitlin
Zoey
Curtis
Joanne
Pansy
Allison
Irisa
Viva
Jonah
Paolo
Chris
William
Eric
Kenny
Bruno
Johnny
Christina
Chris
Wing
Matthew
Max
Joshua
Eric
Pradipti
Tiffany
Koey
Jimmy
Tiffay
Andrew
Tyler
Michelle
Damian
Albert
Keneth
Alex
Jocelyn
Karina
William
Damian
Alvin
Christina
Haden
Joanne
Irisa
Christopher
Caitlyn
Breanna
Matthew
Ye
Van
Joshua
Edward
Aiden
Andrew
Jeffrey
Dylan
Mira
Austin
Ivana
Gary
Emily
Akemi
Stephen
Daniel
Lilia
Andrew
Luke
Liam
Hayden
Jacob
Noella
Caleb
Eric
Joyce
Vivian
Lexian
Raina
Rafael
Nathaniel
Nicolas
Brian
Justin
Stella
Wendy
Joseph
Joshua
Brianna
Justin
Qiao Yan
Antonio
Caden
Tommy
David
Darren
Brennan
Jennifer
Deion
Aaron
Jackie
Christina
Joselino
Nathan
Munkhtushie
Kyle
Noelle
Andy
Audrey
William
Jenna
Ryan
Nathan
Ivy
Gabriel
Joyce
Pyry
Mika
Sophia
Ethan
Emely
Nate
Koen
Annie
Jason
Ivan
Tobias

scales's People

Contributors

simart avatar diegooroyale avatar mrchanr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.