Expand/Shrink

cdCanvasUpdateYAxis

Definition: include pGUI.e

atom newy = cdCanvasUpdateYAxis(cdCanvas canvas, atom y)
Description: Invert the given Y coordinate if the native Y axis orientation is different from the CD axis orientation.
The CD axis orientation is always bottom-top. It also returns the changed value.
pwa/p2js: Not supported.
Comments: Since the pGUI wrapper function can accept integers and floats in the y parameter, and return an atom or integer, there is no need for a separate cdfCanvasUpdateYAxis wrapper. Internally it only uses the cdfCanvasUpdateYAxis C function.