类
class flower
属性
float sizex;
float sizey;
float posx;
float posy;
float transperance;
float[] force=new float[2];
float[] velocity=new float[2];
float delta_time;
方法
1.初始化
根据粒子群的运动特点,比如方向,速度等,随机为属性赋值
flower(float posx,float posy){
sizex=random(3,12);
sizey=random(3,13);
this.posx=posx;
this.posy=posy;
transperance=255;
stroke(<