add canvas:mul and canvas:add methods

This commit is contained in:
MihailRis
2025-11-11 19:30:27 +03:00
parent b9777cc682
commit 83f7bf80c4
5 changed files with 131 additions and 0 deletions
+4
View File
@@ -32,6 +32,10 @@ public:
void blit(const ImageData& image, int x, int y);
void extrude(int x, int y, int w, int h);
void fixAlphaColor();
void mulColor(const glm::ivec4& color);
void mulColor(const ImageData& other);
void addColor(const glm::ivec4& color);
void addColor(const ImageData& other);
std::unique_ptr<ImageData> cropped(int x, int y, int width, int height) const;