Make art with code
A programming language for creative coding.
No experience needed.
fn setup() {
size(380, 320)
}
fn draw() {
background(rgb(15, 15, 25))
// Animated rings
for i in 0..6 {
let t = frame * 0.02 + i * 0.5
let x = 190 + cos(t) * 60
let y = 160 + sin(t * 0.7) * 40
let hue = (i * 60 + frame) % 360
stroke(hsl(hue, 70, 70))
strokeWeight(2)
noFill()
circle(x, y, 40 + i * 25)
}
}Draw a circle that follows your mouse in just a few lines.
fn setup() {
size(400, 200)
}
fn draw() {
background(white)
fill(coral)
circle(mouseX, mouseY, 40)
}