Resources for Web Development Studio by Joana Chicau at Creative Computing Institute, University of Arts of London.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
413 B

var canvas;
var mic;
function windowResized() {
resizeCanvas(windowWidth,windowHeight)
}
function setup () {
canvas = createCanvas(windowWidth,windowHeight)
canvas.position(0,0);
canvas.style('z-index', '-1')
mic = new p5.AudioIn();
mic.start()
}
function draw () {
background('#88afff');
describe('canvas with light blue background');
var vol = mic.getLevel();
ellipse(width/2, height/2, vol*100)
}