Due: Tuesday, September 15, 8pm
Lev Manovich. The Language of New Media, Cambridge Mass.: MIT Press, 2002. Chapter 1 (pages 18-55)
You can take your code from last week as a starting point, or you can start with something completely new.
Based on the "boxes" in-class example, add some variables to
your code. Follow the same format that I did in terms of
putting variable assignments first, and all your drawing code
beneath that, keeping these two parts of your program
separate. Use at least 4 variables. Use the variables to add
variance into your sketch. Use these variables in some
combined way, using arithmetic. For example, if you were
drawing a person, say you drew the person's head at
the y
value of 25
. If you then added
a bodyHeight
and legHeight
variables, you might draw the person's shoes at 25 +
bodyHeight + legHeight
. The idea is that you can change
the variable values and the rest of your drawing code will
adjust and still fit or line up.
Run your code and see how it looks. Take a screenshot. Now, without changing any of your draw code, change only the variable values, and re-run your code. Take another screenshot and compare the results. Experiment with running your code this way several times. The idea is that by only changing the variable values, without changing any drawing code you should be able to achieve a varied range of output possibilities.
(Instructions modified for clarity.) Take your code from part 3 above as a starting point, and use the following code as a guide:
Follow the instructions in the TODOs that I've made in comments of that file. There are 5 TODOs.
Parts of this are probably confusing since we haven't talked
about setup()
and draw()
yet. But
this will lead in to the main topic for next week.