-class Life extends SCPattern {
- public final int TIME_BETWEEN_RUNS = 100;
- public final int MAX_DEAD_BRIGHTNESS = 40;
- private final SinLFO xPos = new SinLFO(0, model.xMax, 5000);
- private final SinLFO yPos = new SinLFO(0, model.yMax, 5000);
+class L8onLife extends SCPattern {
+ // Controls the rate of life algorithm ticks, in milliseconds
+ private BasicParameter rateParameter = new BasicParameter("RATE", 122.5, 0.0, 2000.0);
+ // Controls if the cubes should be randomized even if something changes. Set above 0.5 to randomize cube aliveness.
+ private BasicParameter randomParameter = new BasicParameter("RAND", 0.0);
+ // Controls the brightness of dead cubes.
+ private BasicParameter deadParameter = new BasicParameter("DEAD", 25.0, 0.0, 100.0);
+ // Controls the saturation.
+ private BasicParameter saturationParameter = new BasicParameter("SAT", 90.0, 0.0, 100.0);
+
+ public final double MIN_ALIVE_PROBABILITY = 0.1;
+ public final double MAX_ALIVE_PROBABILITY = 0.8;
+
+ private final SinLFO xPos = new SinLFO(0, model.xMax, 3500);