update doc/*/scripting/ui.md
This commit is contained in:
parent
2af55a0227
commit
22d49c1c65
@ -176,6 +176,7 @@ Here, *color* can be specified in the following ways:
|
||||
| data:at(x: int, y: int) | returns 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:blit(src: Canvas, dst_x: int, dst_y: int) | draws the src canvas at the specified coordinates |
|
||||
| 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 |
|
||||
|
||||
@ -177,6 +177,7 @@ document["worlds-panel"]:clear()
|
||||
| data:at(x: int, y: int) | возвращает RGBA пиксель по указанным координатам |
|
||||
| data:set(x: int, y: int, *цвет*) | изменяет RGBA пиксель по указанным координатам |
|
||||
| data:line(x1: int, y1: int, x2: int, y2: int, *цвет*) | рисует линию с указанным RGBA цветом |
|
||||
| data:blit(src: Canvas, dst_x: int, dst_y: int) | рисует src-холст на указанных координатах |
|
||||
| data:clear() | очищает холст |
|
||||
| data:clear(*цвет*) | заполняет холст указанным RGBA цветом |
|
||||
| data:update() | применяет изменения и загружает холст в видеопамять |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user