float distfromcenter =50;
if(mouseX == constrainLetter){
distfromcenter = dist(width/2,height/2, mouseX, mouseY);
fill(map(distfromcenter, 60, 0, 255,0));
println(distfromcenter);
Here is my fading color code completed!! Also have constrain the letter L from certain points so when the mouse is in the middle of the screen the L will fade in to black and fade out to white.
No comments:
Post a Comment