Add transform function documentation

Kevin Harrison 2018-12-13 23:14:14 +00:00
parent e8418b1496
commit 974901eada

@ -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 ## Window
#### open = ui:windowBegin(title, x, y, width, height, [flags](#flags)...) #### open = ui:windowBegin(title, x, y, width, height, [flags](#flags)...)