Pathmaker

TemplatesCreative Coding for Artists and Designers
beginner
Creative Practice
technical

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.

8 weeks
7 hrs/week
56 total hours

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

  • 1
    Write code to create visual art and interactive experiences
  • 2
    Understand programming fundamentals: variables, loops, functions, arrays
  • 3
    Build generative systems using randomness and algorithms
  • 4
    Create interactive sketches responding to user input
  • 5
    Think computationally about creative problems
  • 6
    Develop a creative coding practice and portfolio

Week by Week

1

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

  1. Set up a p5.js sketch using the online editor (editor.p5js.org)
  2. Draw 10-15 shapes: circles, rectangles, triangles, lines
  3. Experiment with size, position, and layering
  4. Add color using fill() and stroke() with RGB values
  5. Create visual hierarchy through size, color, and placement
  6. 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.

7 hrs
2

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

  1. Declare variables to track position, size, or color
  2. Use the draw() loop to animate by updating variables
  3. Experiment with different types of motion: linear, bouncing, oscillating
  4. Add multiple animated elements with independent behaviors
  5. Use frameCount or custom variables to control timing
  6. 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.

7 hrs
3

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

  1. Choose an interaction paradigm: drawing tool, game, instrument, or exploration
  2. Use mouseX/mouseY to track position and create responsive visuals
  3. Add click or key press events to trigger changes
  4. Create visual feedback—make it clear that interaction is happening
  5. Iterate on the feel: does interaction feel responsive and satisfying?
  6. 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.

7 hrs
4

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

  1. Start with a simple grid using nested for loops
  2. Add variation: use loop variables to change size, color, or position
  3. Experiment with modulo (%) to create alternating patterns
  4. Layer multiple patterns or introduce randomness within structure
  5. Create at least 3 distinct pattern variations
  6. 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.

7 hrs
5

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

  1. Design a system with rules: color palette, size ranges, compositional structure
  2. Add randomness within constraints: random positions, sizes, or colors from your palette
  3. Experiment with Perlin noise for organic variation
  4. Generate 5-10 variations—which work best?
  5. Use randomSeed() to recreate successful outputs
  6. 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.

7 hrs
6

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

  1. Design 3-4 visual elements (custom shapes, creatures, patterns)
  2. Write a function for each element with parameters for position, size, color
  3. Use your functions to create compositions
  4. Demonstrate variety: same function, different parameters
  5. Combine functions into larger systems
  6. 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.

7 hrs
7

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

  1. Create an empty array to store objects (particles, agents, etc.)
  2. Write code to add objects to the array (on click, over time, etc.)
  3. Use a loop to update and display all objects in the array
  4. Give objects individual behaviors: movement, growth, color change
  5. Add interaction: click to add, key press to clear, etc.
  6. 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.

7 hrs
8

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

  1. Write a creative brief: concept, inspiration, technical approach
  2. Sketch and plan: what will it look like? How will it work?
  3. Build core functionality using skills from the course
  4. Iterate: test, refine, improve the feel and aesthetics
  5. Polish: consider color, composition, interaction design
  6. Document: write about concept, process, and technical approach
  7. 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.

7 hrs

Topics Covered

creative coding
p5.js
generative art
interactive design
programming
computational art

More in This Track

Ready to begin?

Start your personalized curriculum today — free to try, no credit card needed.