beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

CanvasInfo Op



CanvasInfo
Namespace: Ops.Gl

Op author: pandur

Test Patches: 2 Tests

the size of the canvas in pixels, aspect ratio and pixel density




Inputs

Pixel Unit index (integer /Number)

Outputs

width (Number)
height (Number)
Pixel Ratio (Number)
Aspect Ratio (Number)
Landscape (boolean Number)
Canvas (Object)
Canvas Parent (Object)

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

canvasinfo example


Patches using CanvasInfo

  • Examples (1)
  • Public
  • My Patches

Changelog


new output: landscape - true if canvas width > height
2019-02-20 - pandur
Ops.Gl.CanvasSize renamed to Ops.Gl.CanvasInfo
2019-11-05 - pandur