cdCanvasOrigin
| Definition: |
include pGUI.e
cdCanvasOrigin(cdCanvas canvas, atom x, y) |
| Description: | Allows translating the origin - for instance, to the center of the canvas. |
| pwa/p2js: | Not supported. |
| Comments: |
The function profits from the architecture of the library to simulate a translation of the origin,
which in fact is never actually passed to the canvas in the respective driver.
It is not related with WD nor Transformation Matrix. Default values: (0, 0)
Since the pGUI wrapper function can accept atoms or integers, there is no need for a separate cdfCanvasOrigin wrapper. Internally it only uses the cdfCanvasOrigin C function. |