xxxxxxxxxx
34
// A basic painting example with the mouse
//
// Prototype 1: https://editor.p5js.org/jonfroehlich/sketches/0ERh-9Lbc
// Basic drawing app
//
// Prototype 2: https://editor.p5js.org/jonfroehlich/sketches/ZZFLDQL0H
// This prototype
//
// Prototype 3: https://editor.p5js.org/jonfroehlich/sketches/MSGdVYUle
// Sets brush color based on x-mouse position
//
// Prototype 4: https://editor.p5js.org/jonfroehlich/sketches/hFnLaol1u
// Sets brush size based on microphone level
//
// By Jon Froehlich
// http://makeabilitylab.io
//
// See:
// - https://medium.com/comsystoreply/introduction-to-p5-js-9a7da09f20aa
// - https://learning.oreilly.com/library/view/make-getting-started/9781457186769/ch05.html#response
function setup() {
createCanvas(600, 400);
fill(200, 0, 200, 150);
background(204);
noStroke();
}
function draw() {
ellipse(mouseX, mouseY, 20);
}