Members
Methods
getNonScaledValueOf(scaledLength)
Converts a length value on the scaled canvas to the non-scaled one.
Typically used for interpreting mouseX and mouseY.
Parameters:
Name | Type | Description |
---|---|---|
scaledLength |
number
|
scaled length value |
resize(parameter)
(To be filled)
Parameters:
Name | Type | Description |
---|---|---|
parameter |
scale()
Runs scale() of the current p5 instance for fitting the sketch to the current canvas.
Should be called every frame before drawing objects on the canvas.