How can I make the colours decrease in value for a smooth transition once the RGB values hit 255?

后端 未结 0 1054
你的背包
你的背包 2021-01-29 09:45
int a = 0;
int b = 0;
int c = 0;
void setup () 
{
size (500, 500);
background (0);
}
void draw () {
fill (a, b, c);
circle (mouseX, mouseY, 100);
if (a<255) {
a+=1;}
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题