求教用Processing画画
processing吧
全部回复
仅看楼主
level 1
想用Processing画一屏幕随鼠标运动的圆,离鼠标越近圆越大,谢谢
2014年03月22日 07点03分 1
level 7
不谢
2014年03月27日 04点03分 2
照着打下来看到效果好赞!!
2014年03月31日 09点03分
大神能不能帮我把代码再添加几个笔刷啊,最近要交作业,拜托了,我在吧里提了问题
2015年06月11日 09点06分
level 1
你太好了,明天我试试
2014年03月27日 09点03分 3
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
level 7
你的老师写的代码完全不能实现你说的功能,其效果如下图:
2014年03月31日 01点03分 5
level 7
写了一下注释:
2014年03月31日 03点03分 6
level 7
上面的图没截好,看这个
2014年03月31日 03点03分 7
level 1
非常感谢,明天我研究研究
2014年04月01日 10点04分 8
level 1
为什么显示最后一行后问题
2015年06月11日 05点06分 9
1