add canvas:mul and canvas:add methods
This commit is contained in:
@@ -197,6 +197,8 @@ Here, *color* can be specified in the following ways:
|
||||
| data:set_data(data: table<int>) | replaces pixel data (width * height * 4 numbers) |
|
||||
| data:create_texture(name: str) | creates and shares texture to renderer |
|
||||
| data:unbind_texture() | unbinds the texture from the canvas |
|
||||
| data:mul(*color* or Canvas) | multiplies a color by the specified color or canvas |
|
||||
| data:add(*color* or Canvas) | adds a color or another canvas to a color |
|
||||
|
||||
## Inline frame (iframe)
|
||||
|
||||
|
||||
@@ -197,6 +197,8 @@ document["worlds-panel"]:clear()
|
||||
| data:set_data(data: table<int>) | заменяет данные пикселей (ширина * высота * 4 чисел) |
|
||||
| data:create_texture(name: str) | создаёт и делится текстурой с рендерером |
|
||||
| data:unbind_texture() | отвязывает текстуру от холста |
|
||||
| data:mul(*цвет* или Canvas) | умножает увет на указанный цвет или холст |
|
||||
| data:add(*цвет* или Canvas) | прибавляет цвет или другой холст к цвету |
|
||||
|
||||
## Рамка встраивания (iframe)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user