Set up contributor and detail scene
This commit is contained in:
parent
18850e9fb8
commit
e6536ca7c8
8 changed files with 73 additions and 3 deletions
24
src/sketchObjects/Contributor.ts
Normal file
24
src/sketchObjects/Contributor.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in a new issue