Set up overview screen with click handlers
This commit is contained in:
parent
a4bb1655d0
commit
954cc1fe72
7 changed files with 93 additions and 8 deletions
19
src/Edge.ts
Normal file
19
src/Edge.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in a new issue