diff --git a/Documentation.md b/Documentation.md index d6586e3..84e7aa3 100644 --- a/Documentation.md +++ b/Documentation.md @@ -61,6 +61,33 @@ End the current frame. Call this once every [love.update](https://love2d.org/wik *** +## Transform + +All transform functions must be called after ui:frameBegin and before any non-transform functions. + +#### ui:rotate(angle) +Rotate the UI by `angle` (in radians). + +See [love.graphics.rotate](https://love2d.org/wiki/love.graphics.rotate). + +#### ui:scale(scale) +#### ui:scale(scaleX, scaleY) +Scale the UI by `scale` in both X and Y directions, or specify `scaleX` and `scaleY` separately. + +See [love.graphics.scale](https://love2d.org/wiki/love.graphics.scale). + +#### ui:shear(shearX, shearY) +Shear the UI by `shearX` in the X direction and `shearY` in the Y direction. + +See [love.graphics.shear](https://love2d.org/wiki/love.graphics.shear). + +#### ui:translate(dx, dy) +Translate the UI by `dx` in the X direction and `dy` in the Y direction. + +See [love.graphics.translate](https://love2d.org/wiki/love.graphics.translate). + +*** + ## Window #### open = ui:windowBegin(title, x, y, width, height, [flags](#flags)...)