float modelrad = sqrt((model.xMax)*(model.xMax) + (model.yMax)*(model.yMax) + (model.zMax)*(model.zMax));
PVector modelcenter = new PVector(model.xMax, model.yMax, model.zMax);
- BasicParameter widthparameter = new BasicParameter("Width", 10);
-
+ public BasicParameter widthparameter = new BasicParameter("Width", .1);
+ public BasicParameter huespread = new BasicParameter("Hue", .5);
class Sphery {
float f1xcenter, f1ycenter, f1zcenter, f2xcenter, f2ycenter, f2zcenter;
private SinLFO vx;
float vibration_min, vibration_max, vperiod;
+
+ float hsv = huespread.getValuef();
+ float wpv = widthparameter.getValuef();
Sphery(float f1xcenter, float f1ycenter, float f1zcenter, float vibration_min, float vibration_max, float vperiod) {
this.f1xcenter = f1xcenter;
this.f1ycenter = f1ycenter;
float distfromcirclecenter(float px, float py, float pz, float f1x, float f1y, float f1z) {
return dist(px, py, pz, f1x, f1y, f1z);
}
-
+ //void updatespherey(deltaMs, )
color spheryvalue (float px, float py, float pz , float f1xcenter, float f1ycenter, float f1zcenter) {
return color(px, dist(px, py, pz, f1xcenter, f1ycenter, f1zcenter) , max(0, 100 - 10*abs(dist(px, py, pz, f1xcenter, f1ycenter, f1zcenter)- vibration.getValuef() ) ) );
void run(int deltaMS) {
final float vv = vibration.getValuef();
final float vvx = vx.getValuef();
+
}
}
spherys = new Sphery[NUM_SPHERES];
spherys[1] = new Sphery(model.xMax/4, model.yMax/2, model.zMax/2, modelrad/16, modelrad/8, 2500) ;
spherys[2] = new Sphery(.75*model.xMax, model.yMax/2, model.zMax/2, modelrad/20, modelrad/10, 2000);
- spherys[3] = new Sphery(model.xMax/2, model.yMax/2, model.zMax/2, modelrad/4, modelrad/8, 5000);
+ spherys[3] = new Sphery(model.xMax/2, model.yMax/2, model.zMax/2, modelrad/4, modelrad/8, 2500);
+
}
- float rsv, noiseyv, bandv;
public void StartRun(int deltaMs) {