Skip to content

Instantly share code, notes, and snippets.

function setup() {
createCanvas(400,400);
}
function draw() {
var a = 0;
var b = 200;
noStroke();
function setup() {
createCanvas(400,400);
background(0);
}
function draw() {
var a = 0;
function setup() {
createCanvas (372, 370);
background(0);
}
function draw() {
var a = 10;
var b = 40;
function setup() {
createCanvas (400, 400);
background(0);
}
function draw() {
var a = 0;
var b = 5;
var c = 400;
function setup(){
createCanvas(500, 500, WEBGL);
saveFrames('motioooon_', 'png', 5, 25);
}
function draw(){
background(0);
stroke(255);
rotateX(frameCount * 0.02);
rotateY(frameCount * 0.02);
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Page Title</title>
<meta name="description" content="something">
function setup() {
createCanvas (400, 600);
}
function draw() {
fill(0);
noStroke();
ellipse(70,70,70);
function setup() {
createCanvas (400, 400);
}
function draw() {
line(random(400), random(400), random(400), random(400));
}
function setup() {
createCanvas (600, 200);
}
var a = 40;
var b = 40;
var c = 40;
function draw() {
ellipse(40,b,c);
function setup() {
createCanvas (400, 400)
}
function draw() {
for (b = 0; b < 200; b++);
var a = random(400);