随笔分类 -  processing

摘要:彩色棋盘实验报告一. 思路:初始化棋盘格子,初始化最上和最下两边的颜色参数。监测鼠标点击的位置的颜色和状态(0,-1,1)。定义ball和square,包含了颜色,半径,位置(x,y)属性(property),并且定义了绘画ball和square的方法(me... 阅读全文
posted @ 2017-07-16 22:50 清凌 阅读(294) 评论(0) 推荐(0)
摘要:processing……有毒= =!!!!! 一个移动的小球==int num=2;//the number of linesint width=500;int height=500;color c=color((int)random(255), (int)... 阅读全文
posted @ 2017-07-11 14:20 清凌 阅读(308) 评论(0) 推荐(0)
摘要:carrunningCar myCar;PFont font;void setup() { size(400, 400); myCar = new Car(); //background(255); font = createFont("Courie... 阅读全文
posted @ 2017-07-08 12:51 清凌 阅读(251) 评论(0) 推荐(0)
摘要:彩虹下的小车int x=0, y=height;void setup() { size(500, 500);}void draw() { int i; int X=0; background(0, 0, 255); for (i=1000; i>... 阅读全文
posted @ 2017-07-08 11:39 清凌 阅读(225) 评论(0) 推荐(0)
摘要:很晚了。就发一条processing的代码。。。。float r=0,r2=0;float c=0,c2=0;void setup(){size(600,600);background(255);}void draw(){ noStroke(); frameRat... 阅读全文
posted @ 2017-07-05 23:58 清凌 阅读(327) 评论(0) 推荐(0)