A beginner's guide to

Generative Art

Write the rules, add a little chance, and let the code draw. Generative art is making images and animations by writing rules in code, often with controlled randomness, then selecting and refining what the program draws.

Guide updated 31 October 2026

Start here ↓
Start-up cost£0–£30
Best settingComputer
FeelsCurious
PopularityModerate
CostLow
DifficultyModerate
Time needed30 minutes
Physical effortVery low
Social levelOptional
🖥️

Start this hobby

Your first practical checklist

01

Buy or borrow

A computer with a web browser. Any laptop will do; the p5.js web editor runs in the browser with nothing to install.

02

First 30 minutes

Open the p5.js web editor and draw circles, lines and rectangles with code, then change the numbers and see what moves.

03

First week goal

Choose a palette, fix a random seed, make one finished piece, export it as a PNG and share it for feedback.

04

Avoid this mistake

Pasting in code you don't understand teaches nothing, so type it out and change one value at a time to see what it does.

Is this for me?

A quick fit check

Good signs

  • You like both visual design and logic puzzles, and enjoy seeing a small code change transform an image.
  • You enjoy experimenting and choosing the best from many outputs, rather than getting one piece right first time.
  • You're drawn to patterns, geometry, textures and the maths you spot in nature.

Think twice if

  • You have to learn some programming, and the first hours are mostly fixing errors rather than making art.
  • Much of what you generate will be dull, so choosing and refining takes patience and a developing eye.
  • Some people lump generative art in with AI image tools or NFT sales, so expect questions about what counts as your work.

Make generative art easier

Use the p5.js web editor, which needs no install, and remix an example sketch by changing numbers before you write anything from scratch.

First session

What to do in the first 30 minutes

0–5 min

Open the p5.js web editor, run the default sketch and change the canvas size and background colour.

5–15 min

Draw a circle, a rectangle and a line using their coordinates, and give each a fill colour.

15–25 min

Wrap a shape in a loop to repeat it across the canvas and use random() to vary where each one lands.

25–30 min

Run it several times, pick the best result and save it as an image.

The appeal · Digital practice

Why try generative art?

Generative art uses a system of rules, usually code with controlled randomness, to produce visuals, so you design the process rather than every mark. It differs from AI image generation, where you describe a picture in words, and from digital drawing, where you place each stroke yourself. Beginners start with p5.js or Processing, then explore noise, recursion and particle systems, and some move on to pen plotters and large prints.

✦

Endless variations

One idea can produce thousands of versions, which drawing by hand rarely allows.

✦

Coding with a visible result

Loops, functions and variables are easy to understand when you can see them draw.

✦

Shareable work

Sketches run in a browser, and images and animated clips suit online sharing and prints.

Keep it simple

What you need to begin

  • A computer with a web browserAny laptop will do; the p5.js web editor runs in the browser with nothing to install.
  • A free creative coding environmentp5.js (JavaScript) and Processing are the usual starting points, with reference pages and examples you can remix; Python also works.
  • A code editor (when you outgrow the web one)A free editor lets you keep projects on your own computer and save versions as you go.
  • A sketchbookDraw grids, shapes and colour palettes on paper before coding, and jot down the random seeds that gave images you liked.

The fundamentals

Four skills to build

01

Coordinates, shapes and colour

Knowing how the canvas grid places shapes, and how colour values work, is the base of every sketch.

02

Loops and functions

Repeating and reusing code lets one small idea fill the whole canvas.

03

Randomness and noise

Random values give chaos while Perlin noise gives smooth variation; controlling both, with seeds, is the heart of the form.

04

Composition and curation

Limiting palettes and choosing the strongest outputs is what turns a pretty pattern into a piece.

Software deep dive

Generative Art: zero to professional

Data work turns messy source material into a trustworthy explanation. The professional skill is not producing a chart—it is preserving meaning through collection, cleaning, analysis, visual encoding and communication.

Specific to Generative Art

Fresh starter paths and projects

Choose a path

  • Sketch route: p5.js or Processing for grids, randomness, noise and interaction.
  • Shader route: GLSL/Shadertoy for real-time visual systems.
  • Physical route: plotters, laser cutters or prints from exported SVG/PNG work.

Project ladder

  1. random circle study
  2. grid poster
  3. noise landscape
  4. particle animation
  5. ten-piece daily sketch series
  6. physical plotted artwork

Watch-outs

  • Save seeds and parameters so good accidents are reproducible.
  • Export at print resolution early.
  • Credit datasets, code libraries and source references.

Start with the right route

Common options and trade-offs

Python and Jupyter

Flexible analysis, automation and machine learning using libraries such as pandas and Matplotlib.

Know the trade-offNotebooks become hard to maintain unless code is organised and rerun from a clean state.

R and RStudio

Strong statistics, reporting and visualisation, particularly with the tidyverse and ggplot2.

Know the trade-offIt is a separate language and ecosystem from most application-development stacks.

D3, Observable, Tableau or Power BI

Interactive web visualisation or dashboarding. D3 gives control; dashboard tools accelerate business reporting.

Know the trade-offEase of chart creation does not guarantee correct analysis or accessible communication.

A practical setup

Common tools and what each one does

ToolPurposeBeginner advice
SpreadsheetInspect and validate small data

Keep raw data separate and make transformations explicit.

Python, pandas and JupyterClean, analyse and automate

Restart and run all cells to prove the notebook is reproducible.

R, tidyverse and QuartoStatistics and reproducible reports

Keep analysis, narrative and outputs connected.

D3 or ObservableCustom interactive visualisation

Use semantic structure and accessible alternatives.

Tableau Public or Power BIDashboards

Define metrics and refresh behaviour before styling.

Git and data documentationTrack code and assumptions

Large or sensitive datasets need storage outside ordinary Git.

Do not skip levels

A five-stage learning roadmap

1
Foundation

Learn rows, columns, types, missing values, formulas and honest chart selection.

Proof you are ready to move on: Clean a small public dataset and answer three specific questions.

2
Working beginner

Use grouping, joins, reshaping and reproducible scripts.

Proof you are ready to move on: Publish a notebook or report that reruns from raw input.

3
Intermediate

Validate assumptions, design metrics and create accessible interactive views.

Proof you are ready to move on: Build a dashboard with definitions, filters and data-quality notes.

4
Advanced

Use statistical inference, pipelines, tests and performance-aware data models.

Proof you are ready to move on: Maintain an automated analysis with monitoring and versioned outputs.

5
Professional

Clarify stakeholder decisions, govern data, review methodology and communicate uncertainty.

Proof you are ready to move on: Lead an analysis from ambiguous question through measured outcome.

How real work gets done

A professional workflow

Use the same sequence on small personal projects that you would use on serious work. The scale changes; the discipline does not.

  1. Write the decision and question before opening the data.
  2. Preserve raw input and document provenance.
  3. Profile types, missingness, duplicates and ranges.
  4. Transform with repeatable code and validation checks.
  5. Choose visual encodings that match the comparison.
  6. State limitations, uncertainty and refresh date beside the result.

Build evidence, not tutorial history

Three portfolio milestones

Beginner

Exploratory report

Clean data, three justified charts and written findings.

Intermediate

Decision dashboard

Metric definitions, filters, accessibility, refresh notes and validation.

Advanced

Reproducible pipeline

Automated ingestion, tests, monitoring, versioned outputs and documentation.

The difference at professional level

Habits that make work trustworthy

  • ✓Never overwrite raw source data.
  • ✓Define every metric in plain language.
  • ✓Test row counts, keys, ranges and important totals.
  • ✓Use colour and interaction accessibly.
  • ✓Separate correlation, prediction and causation.
  • ✓Make uncertainty and limitations visible near the conclusion.

Words you will encounter

Essential vocabulary

Schema
The defined structure and types of a dataset.
Join
Combining tables using matching key values.
Provenance
Where data came from and how it changed.
Metric
A precisely defined quantitative measure.
Reproducibility
The ability to recreate results from documented inputs and steps.
Encoding
The visual property—position, length, colour or shape—used to represent a value.

Continue with primary sources

Official learning resources

Documentation is a working tool, not something to read once from beginning to end. Follow one structured introduction, then return with specific questions from a project.

Four small steps

Your first week

  1. Open the p5.js web editor and draw circles, lines and rectangles with code, then change the numbers and see what moves.
  2. Use a loop to draw a grid of shapes, then add random() to vary size or colour and run it several times.
  3. Swap random for Perlin noise to get smooth flowing patterns, and save the images you like.
  4. Choose a palette, fix a random seed, make one finished piece, export it as a PNG and share it for feedback.

The longer path

How progress usually looks

For generative art, a sustainable rhythm is two or three sessions a week of about an hour, or a weekend afternoon on a bigger sketch. Move forward when the current step feels repeatable, not merely possible once.

1

First sketches

You draw shapes in code and use loops and random values to repeat and vary them.

2

Systems

You build grids, recursion, particle systems and noise fields, using a chosen palette and seed.

3

Finished series

You produce a consistent set of images or animations and can explain the rules behind them.

4

Output and showing

You export high-resolution prints, try pen plotters or shaders, and show work online or at meet-ups and exhibitions.

Progress markers

What improvement looks like

Beginner

You draw shapes in code and use loops and random values to repeat and vary them.

Intermediate

You produce a consistent set of images or animations and can explain the rules behind them.

Confident

You export high-resolution prints, try pen plotters or shaders, and show work online or at meet-ups and exhibitions.

Spend deliberately

A realistic cost plan

The headline starting range is £0–£30, but access, borrowing and second-hand equipment can change that substantially.

Try it£0The p5.js web editor, Processing and free tutorials.
Get going£10–£30A few prints of your best pieces, a book or a small domain for a gallery.
Later£100+A pen plotter, larger framed prints, paid courses or a better display.

Learn with other people

Community and safety

☺

Finding your people

Online creative coding communities and forums for p5.js and Processing are friendly to beginners and share sketches freely. Look for UK creative technology meet-ups and art-and-tech events for in-person feedback.

+

Safety note

Risk is low, but avoid fast strobing or flashing animations, which can trigger seizures in people with photosensitive epilepsy, and add a warning if you share anything flickery. Take regular screen breaks and respect licences for any images, fonts or code you reuse.

Three common beginner mistakes

  • Pasting in code you don't understand teaches nothing, so type it out and change one value at a time to see what it does.
  • Not recording the seed means you can never recreate the image you love, so set randomSeed() and noiseSeed() and note the values.
  • Piling on effects makes images muddy, so stay with one idea and a palette of two to four colours.

Good to know

One tip worth keeping

From the HobbyWiki notebook

Beginners lean on pure randomness, which gives noise rather than art; limit your choices with a palette, a grid or repeated structure, and record the random seed so you can reproduce what you like. If you reuse code, images or music, check the licence.

Find your angle

Useful searches from here

Before you begin

Common questions

Do I need to be good at maths?+

Not to begin; basic arithmetic and a feel for coordinates are enough. Trigonometry and noise functions come in naturally as your ideas need them.

Is generative art the same as AI art?+

No. In generative art you write the rules or code that make the image, whereas AI image tools produce pictures from text descriptions using trained models.

What language should I start with?+

JavaScript with p5.js is easiest because it runs in a browser, while Processing and Python are other good options. The ideas transfer between them.

Can I sell or print generative art?+

Yes, many artists sell prints. Check the licences of any libraries or assets you used and be clear about how the work was made.

What is a pen plotter?+

A machine that draws vector lines with real pens from code, giving generative art a physical form on paper. Entry-level machines exist, but they are a later purchase, not a starting one.