Homework Ellen 06 - ITPNYU/ICM-2024-Code GitHub Wiki
Section 06 Info | |
---|---|
Meeting Time | Tues 12:10pm - 2:40pm |
Location | Room 411 |
Contact | [email protected]On weekdays I aim to respond within 24 hours |
Student Hours | Mon + Fri 1:00pm – 3:00pm Sign up here |
Support | Resident office hours (schedule) The Coding Lab (schedule or drop-in help)How to ask code-related questions (examples) |
ICM Help Sessions | Thursdays 3:30pm – 5:00pm • Room 410Mondays 12:30pm – 2:00pm • Room 408 |
Additional Materials | Submit creative assignmentsAssignment responsesOur Miro boardCourse syllabusp5.js Reference / Web EditorThe Coding Train's Intro to p5.jsAllison Parrish’s Creative Coding NotesPatt Vira's Make Art with Codexin xin's Intro to p5.jsJack B. Du's My Coding Showxin xin's Intro to p5.jsQtv's Creative Coding tutorials in Chinese (also on bilibili)HappyCoding.io |
Contents
- About Our Section
- Week 1 • Sept 3 • Introduction and Drawing in p5.js
- Week 2 • Sept 10 • Animation with Variables
- Week 3 • Sept 17 • Interaction with Conditionals
- Week 4 • Sept 24 • Repetition with Loops
- Week 5 • Oct 1 • Organization with Functions
- Week 6 • Oct 8 • More Repetition with Classes
- Week 7 • Oct 22 • Share Assignments / GenAI Tools
About Our Section
Please read the ICM Code Syllabus for the course description, learning objectives, and all policies.
In addition, our course section embraces an active-learning approach with the belief that programming is best understood by doing. In keeping with this approach, class time will be structured as a workshop and seminar instead of a lecture, relying heavily on group discussion and participation. Weekly tutorials before our class sessions will introduce fundamental coding concepts. During class, supplemental code examples will be presented and discussed before hands-on work together. Time will also be allotted to share our weekly assignments. Examples and assignments will iteratively build upon lessons learned in preceding classes. I encourage you to reach out to me outside of class to ask questions, share your ideas and feedback, and discuss topics in detail.
Weekly Assignment Guidelines
All assignments will be posted on this page, and all are required. Unless otherwise stated, assignments are due the night before class so that I have a chance to review your questions before we meet. All assignments are expected to be submitted by the stated deadline. If you anticipate any challenges meeting the deadline, please reach out to me so that we can consider your options together.
Submitted assignments will be marked as complete (full credit), partially complete (half credit), or incomplete (no credit) in accordance with the Assignment Policy.
Reading and Video Tutorials
Before class, read and/or watch the assigned tutorials about fundamental coding concepts and creative programming techniques to practice together when we meet in class.
Worksheets
There are worksheets* to practice the concepts introduced in this course. You are expected to add links to your p5 sketches directly in these documents.
Creative Assignments and Documentation**
Each week there is an open-ended exercise to apply the concepts that we practice. You are expected to document your process, include a link to your p5 sketch, and answer these questions to complete the assignment:
- What did you do?
- What worked?
- What didn’t work, and what steps did you take to try to solve the issue?
- Did any code-related questions come up for you?
- Be sure to cite your sources.
Submit the creative assignments using our homework form*.
A big part of learning at ITP is learning from each other. Here is the spreadsheet with everyone's responses*.
*Log in to your NYU account to access the document.
**If you are struggling with the weekly assignments, put your energy into writing about what didn't work and how you tried to solve it. It is totally okay to vent your frustrations. Document your work to reference later and also to help you synthesize what you did and tried to do.
AI Guidelines
Adding on to the course AI Statement, our section will offer the use of emerging generative AI tools after introducing and practicing the basic programming control structures in Weeks 1-6. This approach, based on student feedback, is intended to empower you to use AI more effectively, should you choose to integrate it into your practice. Much in the same way that you might practice arithmetic before learning to operate a calculator, if you can describe the foundational coding concepts and assemble simple algorithms first (see our Course Objectives), then you will be better equipped to use generative AI more efficiently to develop your project ideas. In Week 7, we will discuss the benefits and limitations of these tools, along with various strategies and student examples of integration. Any use of AI tools is expected to be cited (see below) to share and learn best practices from one another.
Citation Guidelines
In accordance with the Statement of Academic Integrity, you are expected to cite your sources and note how you used them. For code references, a link to the online source along with a brief description will suffice. If you use any generative AI tools, e.g. ChatGPT, Claude, Gemini, Copilot, etc., please include the model name and version with a description of why and how you used the model.
Week 1 • Sept 3 • Introduction and Drawing in p5.js
In class
- Welcome! and introductions
- Course overview
- What is p5.js (p5)?
- p5 web editor
- p5 functions
- On learning to code (and AI)
- Syllabus, schedule, assignment
- What can we do with creative coding?
Resources
- Week 1 Syllabus Resources
- Learning to Learn (to program) by Paul Curzon
- Digital Color Meter on Macs
Examples
- HTML, CSS, JavaScript / p5.js Website Demos | Code
- p5 getting started sketch
Assignment due the night before our next class
- DO (if you haven't already)
- Complete a very quick pre-class survey (NYU login required) to tell me a little bit about yourself.
- Create a p5 web editor account.
- Have a place online to document your creative assignments. This could be a website/blog, Notion page, or even a Google document. If you’re not sure what to use, please reach out to me for help.
- WATCH (BEFORE EXERCISES) • Coding Train videos 1.1-1.6 ~1hr 20min
- PRACTICE • Week 1 Worksheet
- CREATE • SELF-PORTRAIT
- Think about what a self-portrait means to you. Is it a depiction of what you look like? A bridge between your private and public regard? Or a collection of your lived experiences?
- Consult the p5 Reference.
- Add comments to your code to describe the different parts.
- Submit your documentation on our homework form.
- WATCH (AFTER EXERCISES) • Coding Train Videos
2.1-2.5
about variables,
random()
, andmap()
~1hr
Week 2 • Sept 10 • Animation with Variables
In class
- Share our homework
- Logging values to the Console
- Introduction to variables
setup()
vsdraw()
- Animating shapes
- Variable scope
- p5 system variables
Examples
- Week 2 Syllabus Resources
- console.log with variables
- animated shape
- variable scope
- style settings in
draw()
- responsive rect
- Drawing arcs and curves
- p5 Learn: Arcs and Curves
- How to Draw Arcs in p5.js
- Allison Parrish's
quadraticVertex()
andbezier()
demos - Programming Design Systems curve animations (scroll down)
- Rotating and drawing custom shapes (and using the
translate()
function)- Coding Train Videos 9.1-9.3 and 9.22
- Rotating shapes p5 example demo series
- Other self portraits Garbage Selfie by Jenny Odell | Data Selfie by Hang Do Thi Duc and Regina Flores | Stranger Visions by Heather Dewey-Hagborg | Weird Faces by Matthias Dörfelt | parametric expression by Mike Pelletier | Emoji Script by Travess Smalley | Más Que la Cara by Zach Lieberman | Aspire Mirror by Joy Buolamwini
Assignment due the night before our next class
- WATCH (OPTIONAL) • Coding Train Videos 16.1-16.2 about keywords let, var, and const ~20 min
- PRACTICE • Week 2 Worksheet
- CREATE • OPPOSITES
- Choose a pair of words with opposite meanings, such as “order” and “chaos,” “ascend” and “descend,” “empty” and “full.” Create one sketch to represent the pair of your choice.
- Consider illustrating the opposite meanings through composition of elements, selection of colors, or any time-based change or movement.
- Think about what you can do to make your audience sense or think of the two words without having to spell them out.
- Submit on our homework form.
- WATCH • Coding Train Videos 3.1-3.4 about conditional statements ~1hr
Week 3 • Sept 17 • Interaction with Conditionals
In class
- Share our homework
- Relational expressions and conditional statements
- Boolean variables
- Combining expressions
Resources
- Week 3 Syllabus Resources
- p5 Reference tutorial: Interactivity with the mouse and keyboard events (mousePressed vs mouseClicked, etc.)
Examples
- random number generator
- opposites: order vs chaos with reset
- checking multiple conditions, hover columns
- Boolean variables with if statements
- toggle switch
- Are you sure? with input field
Assignment due the night before our next class
- PRACTICE • Week 3 Worksheet
- CREATE • CHOICES
- Two roads diverged in a yellow wood, And sorry I could not travel both... Life is full of difficult choices, use conditional statements to control the flow of your programs. Create a sketch that asks people to make difficult choices that have surprising consequences.
- Which choices are easier, harder? Which choices are false choices?
- What internal or external factors influence the choice? How do others’ choices affect your choices?
- What choices surprise you with unexpected outcomes?
- Can you combine choices to create hard-to-predict results? (Hint: Use
&&
and||
) - Submit on our homework form.
- WATCH • Coding Train Videos 4.1-4.2 about loops ~25min
Week 4 • Sept 24 • Repetition with Loops
In class
- Share our homework
- More with conditional statements
- Introduction to loops
- Creative coding examples
Resources
Examples
- bouncing ball
- anatomy of a for loop
- drawing columns with a for loop - counting by columns
- drawing columns with a for loop - counting by pixels
- Test Pattern by Ryoji Ikeda (video) | Generative Digital by Tyler Hobbs | Daily Art from Saskia Freeke | Shimmer by Dave Whyte | Quarantena generativa {2020} by Anna Carreras | 流れのパターン / Patterns of Flow group exhibition on Feral File (2024)
Assignment due the night before our next class
- PRACTICE • Week 4 Worksheet
- CREATE • PATTERNS
- We humans have a tendency to look for patterns everywhere. We see patterns in nature and on the urban streets of New York. We rely on patterns we’ve detected in life to make predictions and acquire knowledge. Computation is all about patterns.
- Observe, both outside (your surroundings) and inside (your history of thoughts and feelings), make a sketch about a specific pattern you find.
- Get creative. Think about how you can tell the unique story of the pattern using code.
- Submit on our homework form.
- WATCH
- Coding Train Videos 5.1-5.3 about functions and Videos 7.1-7.2 about arrays ~55 min
- A Brief Introduction to Debugging Parts 1-4 (p5 is not mentioned, but these tips are universal for all programming languages!) ~15min
- READ • p5 Tutorial: A Field Guide to Debugging
Week 5 • Oct 1 • Organization with Functions
In class
- Introduction to arrays
- Share our homework (1/2 class)
- Define functions to perform tasks
- Call functions with and without arguments
- Functions that calculate values for us
- Anonymous check-in survey
Resources
- Week 5 Syllabus Resources
- Manfred Mohr's Cubic limit I (1973-1976)
saveCanvas()
function- おかず / Okazz for pattern inspiration from Michelle!
- The Coding Train's Perlin Noise playlist
- Gracy Whelihan's ITP thesis, PRNG: An exploration to recognize the importance and value of patternlessness and how humans experience and interpret it by creating a process for generating randomness
Examples
- random name generator (part 1)
- face without functions
- face with functions (part 1)
- face with functions (part 2)
- p5 functions that return values
Assignment due the night before our next class
- PRACTICE • Week 5 Worksheet
- CREATE • TIME
- This week’s computational theme is organization. In what ways do we conceive of and organize time? Create a sketch to represent “time”. Think about what quality of time you would like to portray. A few ideas to consider:
- The passing of time through change, motion, or accumulation of elements
- The relativity of time
- Time twisted
- Capturing time
- The stillness of time
- …what else?
- Submit your documentation on our homework form.
- This week’s computational theme is organization. In what ways do we conceive of and organize time? Create a sketch to represent “time”. Think about what quality of time you would like to portray. A few ideas to consider:
- WATCH • Coding Train Videos 6.2-6.3 and 7.3-7.7 about writing classes to create many objects, mouse interacting with those objects, and objects communicating with each other ~1hr 40min
Week 6 • Oct 8 • More Repetition with Classes
In class
- Share our homework (1/2 class)
- Custom functions that return values
- Introduction to classes to make objects
- Objects with arrays and loops
- Adding objects with mouse press
Resources
Examples
- name generators
- custom functions that return values
- many balls - what's the same and what's different?
- make objects with a class
- make objects from a class with mouse press
- Arrels by Anna Carreras | uneasy dream by Manolo Gamboa Naon | Infinite Entropy by Rafaël Rozendaal | Delicate Boundaries by Chris Sugrue
Assignment due the night before our next class (in two weeks)
- PRACTICE • Week 6 Worksheet
- CREATE • SIMULATION
- The idea this week is to explore the topic of simulation with computation. Now that we can scale our programs with many more objects to behave independently of one another, in what ways can we model the world around us? To get started, consider how simulations might be used to:
- Practice a procedure
- Test a strategy
- Visualize a system (natural? biological? social?)
- Study a situation to predict or retell an event
- Submit your documentation on our homework form.
- Prepare a 3-minute presentation to share with the class to introduce your sketch, choose one feature or interaction to demo (which one is the most interesting to you?), and walk us through the related code to produce that effect. Use your documentation as an outline to help you plan out everything you want to share. This is an opportunity to practice the technical language introduced in this course. Clarify the vocabulary you will use.
- The idea this week is to explore the topic of simulation with computation. Now that we can scale our programs with many more objects to behave independently of one another, in what ways can we model the world around us? To get started, consider how simulations might be used to:
Week 7 • Oct 22 • Share Assignments / GenAI Tools
In class
- Share our homework
- GenAI tools for coding
Resources
- Week 7 Syllabus Resources
- How large language models work, a visual intro to transformers by 3Blue1Brown
- A Survey of Large Language Models (last revised 13 Oct 2024) | Site
- Large Language Models: A Survey (last revised 20 Feb 2024)
- NYU’s Generative AI and Large Language Models (LLM) Guide
- NYU’s Machines and Society Guide (Large Language Models and Gen AI for Research and Creative Use)
- Prompt engineering
- Hard Fork (NYTimes podcast): “a show about the future that’s already here. Each week, journalists Kevin Roose and Casey Newton explore and make sense of the latest in the rapidly changing world of tech.”
Assignment due the night before class
- PRACTICE • Review with the Week 7 Worksheet
- CREATE • ITERATION WITH AI
- Think back to a previous open-ended, creative assignment. Is there something you left unfinished? A feature you wanted to include but ran out of time? Or maybe there's a glitch that’s been hard to solve? This week, revisit that assignment with generative AI. Use the tool(s) of your choice!
- Consider how AI can support the creative process. You might:
- Generate new visual ideas or otherwise expand on the concept.
- Improve or refine the code, perhaps addressing unresolved issues.
- Find ways to enhance user interaction or explore alternative outcomes.
- Reflect on how AI helps you iterate (or not). Are the results what you expected, or do they surprise you? How does it shape your creative decisions?
- Document the process. Share both the changes and the insights you gained from collaborating with AI.
- Submit on our homework form.
- READ / INTERACT
- Allison Parrish's Media: Images
- Rune Madsen's Computational Color (don't worry about the Rune.js code examples), accompanying code examples written in p5.js
- WATCH
- Coding Train Video on Uploading Media Files in the p5.js web editor ~7min
- Video 7.8 on adding images to objects ~17min
- Video 11.3 on the pixel array ~40min
Starting Week 8 (Oct 29) we'll use the ICM-2024-Media Homework Ellen Wiki