Mode:
Duration:
1
2
3
4
5
6
7
8
function setup() {
createCanvas(400, 200);
}
function draw() {
background(255);
fill(0, 100, 255);
ellipse(mouseX, mouseY, 50, 50);
}Coding works best on desktop or with an external keyboard.
function setup() {
createCanvas(400, 200);
}
function draw() {
background(255);
fill(0, 100, 255);
ellipse(mouseX, mouseY, 50, 50);
}Coding works best on desktop or with an external keyboard.
A circle that follows the mouse cursor.
function setup() {
createCanvas(400, 200);
}
function draw() {
background(255);
fill(0, 100, 255);
ellipse(mouseX, mouseY, 50, 50);
}p5.js is a JavaScript library designed to make coding accessible for artists, designers, and beginners. It provides an intuitive way to create graphics, animations, and interactive content on the web using a friendly API inspired by Processing.
Origin & Creator
p5.js was created by Lauren McCarthy in 2014 as a JavaScript adaptation of Processing to make creative coding more web-friendly and accessible.
Industrial Note
Primarily used in education, art, and creative coding communities rather than enterprise software. Its focus is on learning, prototyping, and interactive visualization.