ForceCanvasSize Op

ForceCanvasSize

Resize canvas element to a specific pixel size or aspect ratio


for this to work in default exported html, remove "position:absolute;" from styling of the canvas element.


Full Name
  • Ops.Gl.ForceCanvasSize
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


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)

Patches using ForceCanvasSize

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2020-01-24 14:54
Ops.User.pandur.ForceCanvasSize renamed to Ops.Gl.ForceCanvasSizeuser avatarpandur - 2020-01-24 15:46