Create other sketchObjects

This commit is contained in:
Dennis Schoepf 2021-07-24 17:21:09 +02:00
parent e6536ca7c8
commit cd858baf3a
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,23 @@
import { mp5 } from '../../main';
import { colors } from '../constants/colors';
export class Contributor {
x: number;
y: number;
size: number;
name: string;
revealed: boolean;
constructor(x: number, y: number, size: number, name?: string, profileURL?: string) {
this.x = x;
this.y = y;
this.size = size;
}
public place() {}
private draw() {
mp5.fill(mp5.color(colors.redDark));
mp5.ellipse(this.x, this.y, this.size);
}
}