FabGL
ESP32 Display Controller and Graphics Library

◆ setOrigin() [1/2]

void setOrigin ( int  X,
int  Y 
)

Sets the axes origin.

Setting axes origin will translate every coordinate by the specified value (except for sprites).

Parameters
XHorizontal translation (0 = no translation).
YVertical translation (0 = no translation).

Definition at line 47 of file canvas.cpp.