Set up overview screen with click handlers

This commit is contained in:
Dennis Schoepf 2021-07-14 22:00:33 +02:00
parent a4bb1655d0
commit 954cc1fe72
7 changed files with 93 additions and 8 deletions

19
src/Edge.ts Normal file
View file

@ -0,0 +1,19 @@
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);
}
}