Please enable JavaScript to use CodeHS

  • Autograded
  • Beginners

Generative Art

In this project, students will use loops, control structures, and Randomizers to create their own generative art in a graphics environment.

Easy

2 Hours

High School

Middle School

Project Description

Background

Generative art, or algorithmic art, is a type of art that is created entirely or in part by a computer program. The programmer develops an algorithm, process, or specific rules that, when run, produces a unique artistic creation!

Your Tasks

There are many ways to set up your program so that each generation is unique; in this project, you are going to use loops and Randomizers. You can use for and/or while loops to control how many times a piece of code is executed. In our example below, each loop cycle adds one individual line to the canvas.

Not all generative art has to be geometric in nature either! This project is totally open-ended, so be as inventive and artsy as you’d like.

Project Demo

Explore this program before assigning it!

Project Overview

Here is an outline of the project activities: