Monday, February 01, 2010

engraving

int t=0;
float r1=random(-0.2,0.2);
float r2=random(-0.2,0.2);
float r3=random(-0.2,0.2);
float g1=random(-0.2,0.2);
float g2=random(-0.2,0.2);
float g3=random(-0.2,0.2);
float b1=random(-0.2,0.2);
float b2=random(-0.2,0.2);
float b3=random(-0.2,0.2);

void setup(){
  size(600,600);
  background(0);
smooth();
}
  
void draw(){
  ++t;
    fill(255,3);
    noStroke();
if(sin(t)<-0.95) {
  rect(0,0,width,height);}
    int red=100+10*sin(t*0.03);
    int green=100+10*sin(t*0.032);
    int blue=100+10*sin(t*0.029);
    stroke(red,green,blue,90);
    stroke(0,0,0,90);
    noFill();
    float rad = width/4*sin(t*0.001);
    float x=width/2+rad*cos(t*0.1);
    float y=height/2+rad*sin(t*0.1);
    float litrad=10+220*sin(t*0.002);
    ellipse(x,y,litrad,litrad);
 
}

infoinfo

submitted by: conroy
views: 

A quick attempt to get fine detail and shading variation that I envy so much in others' work.

Tags: engraving, trigonometry

commentscomment

loading loading...

 

Add a comment: