CanvasInfo_v3 Op

CanvasInfo

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



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


OUTPUT PORTS


CSS Width (Number)
CSS Height (Number)
Pixel Ratio (Number)
Pixel Width (Number)
Pixel Height (Number)
Aspect Ratio (Number)
Landscape (

<i>boolean</i>

Number)

Canvas (Object)
Canvas Parent (Object)

Patches using CanvasInfo_v3

  • Examples
  • Public
  • My Patches

Changelog


featurenew output: landscape - true if canvas width &gt; heightuser avatarpandur - 2019-02-20 07:32
featureFixed HDPI/Retina calculation of pixel numbersuser avatarpandur - 2024-02-23 14:16