Using the draw()
function, create a sketch that changes over time! This sketch can take one of two directions;
Remember, the key to creating a dynamic sketch is to have function arguments that change overtime, between subsequent iterations of the draw()
loop.
This sketch should include (all of these):
draw()
function.setup()
function to “setup” your sketch. This includes;
createCanvas()
var
keyword to define a variable symbolic name.setup()
and draw()
are available globally.draw()
will be reset every loop.
2
every time;draw(){
let incrementingNumber = 1;
incrementingNumber = incrementingNumber + 1;
}
mouseX
mouseY
width
and/or height
environment variables to do this.You should also continue to use the skills, functions, and techniques presented in the previous week. This will be necessary to complete the assignment (but you will not be graded for the inclusion).
As always, include lots of comments about what each section, does, or is trying to do.
As always, you should create a new hw-5/
directory, in the top level of your git repo. You will provide links to both the;
As an example, look at the “Creepy Spinning Variable Person” from the simple math.
[ Code Download ] | [ View on GitHub ] | [ Live Example ] |