level 1
想用Processing画一屏幕随鼠标运动的圆,离鼠标越近圆越大,谢谢
2014年03月22日 07点03分
1
level 1
好人,我研究了半天,实在不太懂,下面的是教我的老师写的,他好像只是稍微改了点,帮我看看呗
void setup()
{
size(600,600);
background(0);
fill(255);
noSroke();
}
void draw()
{
background(0);
for(int y = 0;y < 600;y+=30)
{
for(int x = 0;x < 600;x+=30)
{
float d= dist(mouseX,mouseY,x,y);
fill(d);
ellipse(x+15,y+15,30,30);
}
}
}
2014年03月28日 01点03分
4