Pathmaker
Creative Coding for Artists and Designers
Learn to code as a creative medium. Build generative art, interactive experiences, and computational design using p5.js, exploring procedural systems, randomness, and algorithmic aesthetics.
About This Course
Creative coding treats code as a medium for artistic expression. This course teaches programming fundamentals through making: sketching with code, building generative systems, creating interactive experiences, and exploring computational aesthetics.
You'll learn p5.js (a beginner-friendly JavaScript library) while developing your creative coding practice. No prior programming experience required.
What You'll Learn
- 1Write code to create visual art and interactive experiences
- 2Understand programming fundamentals: variables, loops, functions, arrays
- 3Build generative systems using randomness and algorithms
- 4Create interactive sketches responding to user input
- 5Think computationally about creative problems
- 6Develop a creative coding practice and portfolio
Week by Week
Drawing with Code
Code can draw. This week introduces p5.js and core concepts: the coordinate system, basic shapes, color, and how programs execute.
You'll create your first computational sketches.
Explore this week's curriculum
Key concepts
p5.js: JavaScript library designed for creative coding and visual arts
Coordinate System: Grid where position is defined by x (horizontal) and y (vertical) values
RGB Color: Defining colors by red, green, blue values (0-255 each)
setup() and draw(): Core p5.js functions: setup runs once, draw runs repeatedly in a loop
Studio activities
Geometric Composition
Create a composition using code-drawn shapes and color
- Set up a p5.js sketch using the online editor (editor.p5js.org)
- Draw 10-15 shapes: circles, rectangles, triangles, lines
- Experiment with size, position, and layering
- Add color using fill() and stroke() with RGB values
- Create visual hierarchy through size, color, and placement
- Iterate: save versions as you experiment
Success criteria
You have a composition that demonstrates control of shape, color, and position
Reflection
- What surprised you about drawing with code?
- How does precision vs. approximation work differently in code?
- What compositions would be hard to create by hand but easy in code?
Study guidance
- Experiment constantly—change values and see what happens
- Think of code as giving instructions to a very literal assistant
- Save interesting accidents—bugs can be beautiful
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How is drawing with code different from drawing by hand?
What affordances does the coordinate system give you?
What happy accidents have you discovered?
What surprised you about drawing with code?
How does precision vs. approximation work differently in code?
What compositions would be hard to create by hand but easy in code?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Variables and Animation
Variables store values that can change. This week introduces variables and uses them to create animation—making things move, grow, and transform over time.
Explore this week's curriculum
Key concepts
Variable: Named container that stores a value (number, text, color, etc.)
Animation: Creating motion by redrawing the canvas with changing values
frameCount: Built-in variable tracking how many frames have been drawn
Incrementation: Increasing a variable's value (e.g., x = x + 1)
Studio activities
Animated System
Create an animated composition where elements move, scale, or transform
- Declare variables to track position, size, or color
- Use the draw() loop to animate by updating variables
- Experiment with different types of motion: linear, bouncing, oscillating
- Add multiple animated elements with independent behaviors
- Use frameCount or custom variables to control timing
- Bonus: make elements wrap around the screen or bounce off edges
Success criteria
You have a working animation demonstrating variable manipulation and motion
Reflection
- How did animation change the feel of your work?
- What motion patterns felt natural vs. mechanical?
- How might you create more organic or complex movement?
Study guidance
- Console.log() is your friend—print variable values to debug
- Start with small changes to see cause and effect
- Think about what changes over time vs. what stays constant
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How do variables give your code memory?
What patterns of motion interest you?
How does animation change the viewer's experience?
How did animation change the feel of your work?
What motion patterns felt natural vs. mechanical?
How might you create more organic or complex movement?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Interaction and User Input
Interactive code responds to users. This week teaches how to use mouse and keyboard input to make responsive sketches that invite participation.
Explore this week's curriculum
Key concepts
mouseX and mouseY: Built-in variables tracking mouse position
mousePressed(): Function that runs when mouse is clicked
keyPressed(): Function that runs when a key is pressed
Event Handler: Function that responds to user actions
Studio activities
Interactive Sketch
Create a sketch that responds meaningfully to user input
- Choose an interaction paradigm: drawing tool, game, instrument, or exploration
- Use mouseX/mouseY to track position and create responsive visuals
- Add click or key press events to trigger changes
- Create visual feedback—make it clear that interaction is happening
- Iterate on the feel: does interaction feel responsive and satisfying?
- Consider: what role does the user play in creating the final output?
Success criteria
You have an engaging interactive sketch with clear cause-and-effect
Reflection
- How did users shape your work through interaction?
- What made interactions feel satisfying or frustrating?
- How does interactivity change authorship?
Study guidance
- Test interaction constantly while building
- Design for discoverability—how do users know what to do?
- Consider the relationship between action and response
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How does interaction change the meaning of your work?
What kinds of agency do you give users?
How can interaction feel playful or surprising?
How did users shape your work through interaction?
What made interactions feel satisfying or frustrating?
How does interactivity change authorship?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Loops and Patterns
Loops repeat actions, enabling pattern generation. This week introduces for loops and uses them to create grids, tessellations, and complex repetitive structures.
Explore this week's curriculum
Key concepts
For Loop: Code structure that repeats a block of code a specific number of times
Iterator Variable: Variable (often i) that tracks loop progression
Nested Loop: Loop inside another loop, useful for creating grids
Modulo: Math operator (%) that returns remainder, useful for creating alternating patterns
Studio activities
Pattern Generator
Create complex patterns using loops and systematic variation
- Start with a simple grid using nested for loops
- Add variation: use loop variables to change size, color, or position
- Experiment with modulo (%) to create alternating patterns
- Layer multiple patterns or introduce randomness within structure
- Create at least 3 distinct pattern variations
- Consider: what would be tedious by hand but easy with loops?
Success criteria
You can generate complex patterns through loops and systematic variation
Reflection
- How does algorithmic pattern-making differ from manual creation?
- What kinds of order and disorder interest you?
- How can you balance repetition with variation?
Study guidance
- Start with simple loops before nesting
- Sketch your pattern on paper first to understand the logic
- Use the iterator variable creatively—it doesn't just count
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
What patterns emerge from simple repetition?
How can variation within repetition create interest?
How do natural patterns differ from algorithmic ones?
How does algorithmic pattern-making differ from manual creation?
What kinds of order and disorder interest you?
How can you balance repetition with variation?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Randomness and Controlled Chaos
Randomness introduces unpredictability. This week explores random() function, noise, and how to balance control with chance in generative systems.
Explore this week's curriculum
Key concepts
random(): Function that returns random numbers within a range
Perlin Noise: Smooth, natural-looking randomness (accessed via noise() in p5.js)
Seed: Starting value for random number generation, allowing reproducible randomness
Controlled Randomness: Using randomness within constraints to shape outcomes
Studio activities
Generative Art System
Create a generative artwork balancing control and randomness
- Design a system with rules: color palette, size ranges, compositional structure
- Add randomness within constraints: random positions, sizes, or colors from your palette
- Experiment with Perlin noise for organic variation
- Generate 5-10 variations—which work best?
- Use randomSeed() to recreate successful outputs
- Reflect: how do your rules shape the aesthetic?
Success criteria
You've created a generative system that produces varied but cohesive outputs
Reflection
- How did randomness surprise you or create unexpected beauty?
- What balance of control and chance feels right for your practice?
- How is generative authorship different from direct creation?
Study guidance
- Pure randomness is often chaotic—add constraints
- Perlin noise creates more organic variation than random()
- Use randomSeed() to make random compositions reproducible
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How much control vs. surprise do you want in your work?
When does randomness feel natural vs. chaotic?
How can you curate randomness rather than just accepting it?
How did randomness surprise you or create unexpected beauty?
What balance of control and chance feels right for your practice?
How is generative authorship different from direct creation?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Functions and Modularity
Functions organize code into reusable chunks. This week teaches function creation and uses them to build modular, scalable creative systems.
Explore this week's curriculum
Key concepts
Function: Named block of code that performs a specific task
Parameter: Variable passed into a function to customize its behavior
Return Value: Value a function sends back when called
Modularity: Breaking complex systems into independent, reusable parts
Studio activities
Modular Visual System
Create a visual system built from custom functions
- Design 3-4 visual elements (custom shapes, creatures, patterns)
- Write a function for each element with parameters for position, size, color
- Use your functions to create compositions
- Demonstrate variety: same function, different parameters
- Combine functions into larger systems
- Bonus: make functions that call other functions
Success criteria
You have a library of custom functions creating a cohesive visual system
Reflection
- How did functions change how you structure code?
- What creative possibilities emerged from modularity?
- How might you share or remix function-based systems?
Study guidance
- Functions should do one thing well
- Name functions clearly—what do they do?
- Test functions in isolation before combining
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How does modularity change your creative process?
What parts of your code could be reused or remixed?
How do functions enable complexity?
How did functions change how you structure code?
What creative possibilities emerged from modularity?
How might you share or remix function-based systems?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Arrays and Collections
Arrays store collections of values. This week introduces arrays and uses them to manage multiple objects, create particle systems, and build dynamic generative works.
Explore this week's curriculum
Key concepts
Array: Ordered list of values, accessed by index number
Array Methods: Functions for working with arrays: push(), pop(), splice(), etc.
Array Loop: Iterating through an array to process each element
Particle System: Collection of many small objects with individual behaviors
Studio activities
Particle or Agent System
Create a dynamic system managing multiple objects with arrays
- Create an empty array to store objects (particles, agents, etc.)
- Write code to add objects to the array (on click, over time, etc.)
- Use a loop to update and display all objects in the array
- Give objects individual behaviors: movement, growth, color change
- Add interaction: click to add, key press to clear, etc.
- Experiment: what patterns emerge from simple rules at scale?
Success criteria
You have a working particle/agent system demonstrating array manipulation
Reflection
- What emergent behaviors appeared in your system?
- How did managing collections change your approach?
- What happens when simple rules interact at scale?
Study guidance
- Arrays indices start at 0, not 1
- Use array.length to make loops flexible
- Arrays can hold any type of data: numbers, colors, objects
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
How do collections enable complexity?
What emerges from many simple things interacting?
How can you manage organized chaos?
What emergent behaviors appeared in your system?
How did managing collections change your approach?
What happens when simple rules interact at scale?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Capstone: Creative Coding Portfolio Project
This final week synthesizes everything. You'll create a substantial creative coding project that demonstrates your technical skills and artistic vision.
Explore this week's curriculum
Key concepts
Creative Brief: Document outlining project concept, goals, and approach
Iteration: Refining through multiple versions based on experimentation
Documentation: Recording process, decisions, and final work
Studio activities
Creative Coding Capstone Project
Create a substantial creative coding project demonstrating your skills and vision
- Write a creative brief: concept, inspiration, technical approach
- Sketch and plan: what will it look like? How will it work?
- Build core functionality using skills from the course
- Iterate: test, refine, improve the feel and aesthetics
- Polish: consider color, composition, interaction design
- Document: write about concept, process, and technical approach
- Share: present your work and explain your creative decisions
Success criteria
Complete creative coding project with clear concept, polished execution, and documentation
Reflection
- How did code enable your creative vision?
- What challenges arose and how did you solve them?
- How has creative coding changed how you think about making?
- What directions do you want to explore next?
Study guidance
- Start with concept, not code—what do you want to express?
- Sketch and plan before diving into code
- Iterate—your first version won't be your best
Discuss with Professor Reed
Choose a question to discuss with Professor Reed. Copy it and paste it into your conversation with him. The copied text includes this week's lesson and assignment; add your own questions or explain where you are stuck.
What creative vision will your code realize?
How will you balance technical ambition with achievability?
What aesthetic or conceptual territory do you want to explore?
How did code enable your creative vision?
What challenges arose and how did you solve them?
How has creative coding changed how you think about making?
What directions do you want to explore next?
Ask me one question at a time to check my understanding, then explain any gaps.
Help me plan this assignment without doing the work for me.
Topics Covered
More in This Track
Repair, Reuse, and Material Recovery
Study repairability, disassembly, waste streams, and the design of another useful life.
Biodesign and Material Cultivation
Explore biological materials through accessible making, observation, and documented material testing.
Information Design and Data Storytelling
Turn researched evidence into visual explanations with clear sources and uncertainty.
Ready to begin?
Start your personalized curriculum today — free to try, no credit card needed.