Refactor scene management with store

This commit is contained in:
Dennis Schoepf 2021-07-18 14:41:53 +02:00
parent f9079e4823
commit 871b4116ff
10 changed files with 69 additions and 59 deletions

View file

@ -1,19 +0,0 @@
import { mp5 } from '../main';
import { colors } from './constants/colors';
export class Edge {
x: number;
y: number;
r: number;
constructor(x: number, y: number, r: number) {
this.x = x;
this.y = y;
this.r = r;
}
draw() {
mp5.fill(mp5.color(colors.grey));
mp5.ellipse(this.x, this.y, this.r * 2);
}
}