Skip to content
David Ahmad edited this page Jan 20, 2016 · 53 revisions

This assignment is due, Tuesday Jan 13

Reading

  1. Chapter 11: Getting Started with p5.js
  2. Array tutorial from Mozilla
  3. Array tutorial from JQuery
  4. For a JavaScript tutorial about arrays I would suggest Chapter 4 of Eloquent JavaScript though I would warn that it gets a bit more advanced than what we need for p5.js sketches.

Videos

Example Code

Coding

Using arrays, write a program that creates multiple instances of an object (feel free to use an object you developed previously or create something new). Here is an example you can use as a model. You should probably stop here, but here are some additional (more difficult) possibilities.

  • Experiment with the resizable nature of arrays. Can you add objects one at a time? Remove them after a certain amount of time or when they leave the screen? Can objects from an array trigger the birth of other objects? See this example.
  • Create an object that stores the history of its own path. This might be a drawing program where you keep a history of mouse locations in an array or a shape that moves around the screen autonomously and draws its own trail. Can you have an array of these objects (each of which stores its own array?). Example 1 Example 2.

Please note you do not at all need to follow the above at all. You can design your own creative assignment, and building off of a previous sketch you made too is ok. If you are struggling for an idea you might think about (a) making a simple game, (b) creating a clock, (c) building a painting system, (d) creating a Villager System, (d) generating a pattern using perlin noise, fibonacci sequence, fractal recursion or anything else we discussed in class. (Note the links are from Golan Levin's CMU course which has many great examples and references.

Blog post

  1. Document the process of creating your sketch for this assignment.
  2. Write your thoughts / reactions to the Museum of Math visit. Some questions to consider, you do not need to answer all of them.
    • How did the museum use interactivity effectively to demonstrate concepts from mathematics?
    • What did you find useful (or not useful) about the paper exercise generating spirals and fractals. How does this "by hand" process compare to writing code to generate patterns.
    • If you were to submit a proposal for an exhibit you'd like to design at the museum, what would it be? How might you go about writing a p5 sketch to demonstrate your idea?
  3. Write your thoughts / reactions to the AMNH visit. Some questions to consider, you do not need to answer all of them.
    • Did you find the use of interactivity effective in the Secret World Inside You exhibit? Were there aspects of the interaction design that you found confusing or unintuitive?
    • Propose an interactive exhibit for anywhere in the museum. If you had a chance to look at the main exhibition halls consider what you might like to build to augment one of the existing exhibitions.
    • What was your favorite / least favorite part of the museum?
    • Was the exhibition department what you expected? Was there anything that surprised you?
    • Write some impressions about the planetarium show. If you could design real-time software to run in the planetarium, what would you build? How could a planetarium show be interactive?

Questions

  • add your questions here

Sketch and blog links

Clone this wiki locally