Set up contributor and detail scene

This commit is contained in:
Dennis Schoepf 2021-07-24 17:19:54 +02:00
parent 18850e9fb8
commit e6536ca7c8
8 changed files with 73 additions and 3 deletions

View file

@ -0,0 +1,24 @@
import { mp5 } from '../../main';
import { colors } from '../constants/colors';
export class Contributor {
x: number;
y: number;
size: number;
name: string;
profileURL: 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.blueGrey));
mp5.ellipse(this.x, this.y, this.size);
}
}