Owen Fox Wallpaper

wallpaper

//constants
var mult = 250;
var c = 50;
var ellD = 25;

function setup() {
    createCanvas(800, 640);
}

function draw() {
    background("lightPink");
    //iterates sine waves made up of circles
    for (var y = 0; y < c + height; y ++) {
        for (var x = 0; x < c + width; x ++) {
        //color changes based on size of y  
        var r = 230 - y * 5;
        var g = 255 - y * 5;
        var b = 247 - y * 5;
        fill(r,g,b);
        ellipse(x,2 *height- (mult * sin(radians(x)) + y*c),ellD,ellD);
        }
    }
noLoop();
}

Leave a Reply