INNER CODE UNIT · JavaScript

setup

ren-yuan/c2.js · examples for p5.js/Analyser.js:36

function setup() {
    createCanvas(960, 540);
    colorMode(HSL, 100);
    textSize(16);
    textStyle(NORMAL);
    textAlign(CENTER, CENTER);

    color1 = color(random(0, 8), random(30, 60), random(20, 100));
    color2 = color(random(0, 8), random(30, 60), random(20, 100));
    color3 = color(random(0, 8), random(30, 60), random(20, 100));
}

function draw() {
    background('#cccccc');

    if(typeof analyser === 'undefined'){
        noStroke();
        fill('#333333');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…