Create other sketchObjects
This commit is contained in:
parent
e6536ca7c8
commit
cd858baf3a
2 changed files with 46 additions and 0 deletions
23
src/sketchObjects/Package.ts
Normal file
23
src/sketchObjects/Package.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in a new issue