I'm new! Help me!
in
Programming Questions
•
8 months ago
I'm not an expert in the use of processing, but I managed to create this code in an almost random. I would like someone to explain to me the steps I have done well, in such a way that they can understand the future ... thanks :)
float h = 100;
float s = 200;
float b = 200;
void setup(){
size(1600,800);
smooth();
background(0);
}
void draw(){
colorMode(HSB,100);
if(mousePressed){
stroke(h,s,b);
fill(0);
ellipse(mouseX,mouseY,pmouseY,pmouseY);
h+=.3;
if(h>=100){h=0;}
}
}
1