xxxxxxxxxx
33
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
}
class Pattern {
constructor() {
this.stages = [];
}
addStage(stage) {
this.stages.push(stage);
}
}
class PatternStage {
// duration:
constructor(duration, angle, spread, damage) {
this.duration = duration;
this.angle = angle;
this.spread = spread;
this.damage = damage;
}
}