NCF参数化建筑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: wyj900817
打印 上一主题 下一主题

[相关书籍] 分享3本processing的教程

[复制链接]
1m
发表于 2010-11-19 19:27:15 | 显示全部楼层
Write a program that displays falling balls, having random radius of between 5 and 40 pixels. At any stage, there should be exactly 3 balls that are on the screen; one each colored blue, red and green respectively. The window background should be white and size should be 600 pixels wide and 600 pixels high. The balls originate from the top of the window (from a random x co-ordinate) and fall down with random speeds (1 to 3 pixels drop per refreshment of draw()). Each ball falls with the same speed throughout it’s fall. Once a ball drops off the window, another ball of the same color, starts from the top of the window. 求解

小黑屋|手机版|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 )    辽公网安备21021102000973号

GMT+8, 2024-5-19 09:28 , Processed in 0.055305 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表