Division
Common methods and properties of all Divisions.
Constructor Summary
Public Constructor | ||
public abstract |
constructor(count: number, limit: number, color: string, seed: number) Creates a Division. |
Public Constructors
public abstract constructor(count: number, limit: number, color: string, seed: number) source
Creates a Division.
Example:
// Creates a Division. This would usually not be done.
const genericDivisionObject = new Division(1, '#ffffff', '.2349785241913');
See:
- generateSeed for more info about the seed.
TODO:
- Create a generateGap function for the Division sub-classes that might use it: Fesses, Pales, etc...
- Create some border methods: generateBorderWidth(), etc...
- Implement some border properties that sub-classes can use.