ForceCanvasSize Op
Resize canvas element to a specific pixel size or aspect ratio
Summary (oneliner)
for this to work in default exported html, remove "position:absolute;" from styling of the canvas element.
Full Name
- Ops.Gl.ForceCanvasSize
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch ForceCanvasSize example
INPUT PORTS
Trigger (Trigger)
Trigger the op
Active (Number:boolean )
Enable or disable the op
Force index (Number:integer ) Resolution Aspect Ratio
Center In Parent (Number:boolean )
Scale to fit Parent (Number:boolean )
Size
Set Width (Number:integer )
Set Height (Number:integer )
Proportions
Aspect Ratio index (Number:integer )
Ratio (Number)
Fill Parent index (Number:integer )
OUTPUT PORTS
Next (Trigger)
Trigger out
Width (Number)
The new width
Height (Number)
The new height
Margin Left (Number)
Margin Top (Number)