Constructor Summary
Public Constructor | ||
public |
constructor(count: number, gapPercentage: number, color: string) Instantiates a Pales pattern. |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
draw(ctx: *, containerWidth: *, containerHeight: *, gapPercentage: *) |
Inherited Summary
From class Division | ||
public |
color: * |
|
public |
count: * |
|
public |
limit: * |
|
public |
seed: * |
|
public |
|
Public Constructors
public constructor(count: number, gapPercentage: number, color: string) source
Instantiates a Pales pattern.
Override:
Division#constructorExample:
// Instantiates a Pales pattern.
const pales = new Pales()
TODO:
- The count limit of 3 is only here because I can't figure out a way to make 4 consistently look good. It always comes out like a rainbow or a monochrome step.
Public Members
public gapPercentage: * source
Public Methods
public draw(ctx: *, containerWidth: *, containerHeight: *, gapPercentage: *) source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
containerWidth | * |
|
|
containerHeight | * |
|
|
gapPercentage | * |
|