This repository has been archived on 2026-03-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
codewanderer/src/sketchObjects/Package.ts

21 lines
441 B
TypeScript

import { mp5 } from '../../main';
import { colors } from '../constants/colors';
export class Package {
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() {
mp5.fill(mp5.color(colors.redDark));
mp5.ellipse(this.x, this.y, this.size);
}
}