mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
add canvas:set_data
This commit is contained in:
parent
22d49c1c65
commit
6078a8802e
4 changed files with 32 additions and 10 deletions
|
|
@ -180,6 +180,7 @@ Here, *color* can be specified in the following ways:
|
|||
| 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 |
|
||||
| data:set_data(data: table<int>) | replaces pixel data (width * height * 4 numbers) |
|
||||
|
||||
|
||||
## Inventory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue