User Tools

Site Tools


programmering:time_1-code
var t=500;
var c=0;
var c2=0;

function setup() {
    createCanvas(1000,800);
    angleMode(DEGREES);
}

function draw() {
    var i;
    var scale_x=width/6;
    var scale_y=height/6;
    
    translate(width/2,height/2);
    background(c);
    for (j=0.1; j<2.5; j=j+0.25) {
        fill(round(j*10),128,round(j*100));
        for (i=1; i<5; i=i+2) {
            ellipse(j*scale_x*sin(t*i),j*scale_y*cos(t*i),100*sin(t*i),10);
        }
        t=t-0.1;
    }
}
programmering/time_1-code.txt · Last modified: 2023/10/21 19:19 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki