mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/scripting/ui.md
This commit is contained in:
parent
dca4f283cc
commit
e8c6c9a7b3
2 changed files with 18 additions and 6 deletions
|
|
@ -166,12 +166,18 @@ Properties:
|
|||
|
||||
Methods:
|
||||
|
||||
Here, *color* can be specified in the following ways:
|
||||
- rgba: int
|
||||
- r: int, g: int, b: int
|
||||
- r: int, g: int, b: int, a: int
|
||||
|
||||
| Method | Description |
|
||||
|----------------------------------------------------------|---------------------------------------------------------|
|
||||
| data:at(x: int, y: int) | returns an RGBA pixel at the given coordinates |
|
||||
| data:set(x: int, y: int, rgba: int) | updates an RGBA pixel at the given coordinates |
|
||||
| data:set(x: int, y: int, r: int, g: int, b: int) | updates an RGBA pixel at the given coordinates |
|
||||
| data:set(x: int, y: int, r: int, g: int, b: int, a: int) | updates an RGBA pixel at the given coordinates |
|
||||
| data:set(x: int, y: int, *color*) | updates an RGBA pixel at the given coordinates |
|
||||
| data:line(x1: int, y1: int, x2: int, y2: int, *color*) | draws a line with the specified RGBA color |
|
||||
| data:clear() | clears the canvas |
|
||||
| data:clear(*color*) | fills the canvas with the specified RGBA color |
|
||||
| data:update() | applies changes to the canvas and uploads it to the GPU |
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue