xxxxxxxxxx
18
// Basic bar graph example with no scaling
//
// By Professor Jon E. Froehlich
// https://makeabilitylab.cs.uw.edu/
//
const values = [80, 20, 140, 210, 50, 40]
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
for(let i=0; i < values.length; i++){
rect(50 + i * 20, 300 - values[i], 20, values[i]);
}
}