xxxxxxxxxx
187
let size=180
let len=3
//const colors = ['#1118ed','#eded11','#f72707']
function setup() {
createCanvas(600, 600);
textAlign(CENTER);
textSize(50);
textStyle(ITALIC);
noStroke();
}
function draw() {
background(255,10);
translate(width/2, height/2)
//four lect
for (let p = 0; p<105; p=p+3){
push()
stroke(0);
noFill();
rotate(-(p/2+frameCount/30))
rectMode(CENTER)
rect(0,0,p*8)
// stroke(0);
// noFill();
// ellipse(100,100,p*8)
// stroke(0);
// noFill();
// ellipse(-100,-100,p*8)
// stroke(0);
// noFill();
// ellipse(-100,100,p*8)
// stroke(0);
// noFill();
// ellipse(100,-100,p*8)
pop()
// push()
// stroke(0);
// noFill();
// rotate((p/2+frameCount/40))
// rectMode(CENTER)
// rect(0,0,p*10)
// pop()
// push()
// stroke(0);
// noFill();
// rotate((p/2+frameCount/40)+90)
// rectMode(CENTER)
// rect(0,0,p*10)
// pop()
// stroke(0);
// noFill();
// rotate(-(p/2+frameCount/40)+90)
// rectMode(CENTER)
// rect(0,0,p*10)
// pop()
push()
stroke(0);
noFill();
rotate((p/2+frameCount/30))
rectMode(CENTER)
rect(0,0,p*8)
pop()
}
// let p = mil/2
// /*if (p>1000) {mil=1}
// if else (p=1) {}*/
// fill(255, 0, 0,50)
// ellipse(0,0, p/3)
// ellipse(0,0, p/2)
// ellipse(0,0, p/1.5)
// ellipse(0,0, p)
//blue, red circles
for (let i = 0; i<len; i++){
push();
noStroke();
fill(255,0,0,30);
//stroke(255)
rotate(-(i/2+frameCount/15))
arc(-size,0,size*2,size*2,0,PI,OPEN)
pop()
push()
noStroke();
fill(0,0,255,30);
//stroke(255)
rotate(-((i/2+frameCount/15)))
arc(size,0,size*2,size*2,PI,TWO_PI,OPEN)
//ellipse(size,0,size*2)
pop()
// push()
// noStroke()
// rotate(-(i/2+frameCount/20))
// fill(colors[i])
// ellipse(20+size*i,0,size)
// pop()
// push()
// noFill();
// stroke(colors[i])
//rotate((i/2+frameCount/20)+90)
//fill(colors[i])
//ellipse(32+size*i,0,size)
// pop()
// push()
// noFill();
// stroke(colors[i])
// rotate(-(i/2+frameCount/20))
// //fill(colors[i])
// ellipse(32+size*i,0,size)
// pop()
// push()
// noFill();
// stroke(colors[i])
//rotate((i/2+frameCount/20)+180)
//fill(colors[i])
// ellipse(32+size*i,0,size)
// pop()
if (mouseIsPressed) {
fill(255);
text('I Love Korea', 0, 0)
// blendMode(LIGHTEST);
// // try changing this to fill (0,0,255);
// fill(0,255,0);
// ellipse(mouseX, mouseY, 100);
}
// else {
// blendMode(MULTIPLY);
// }
//modulo
for (let x = 0; x < 60; x++) {
for (let y = 0; y <60; y++){
if (x % 2 == 0 && y % 2 == 1 || x % 2 == 1 && y % 2 == 0){
noStroke()
fill (20,5);
} else {
noStroke()
fill(125,10);
}
rect(x * 10-300, y * 10-300, 10,10);
}
}
}
}