Usage
Syntax: changeimgcolors(int index, float red, float green, float blue, float alpha)
Explanation
changeimgcolors alters the color and alpha transparency of an image object with the given index.
Example
function onCreated() { showimg(200, "image.png", 30, 30); changeimgcolors(200, 1, 0, 0, .9); }
... renders an image with only the red color channel, slightly transparent
Categories
CategoryFunctionClientside
CategoryFunctionServerside
There are no comments on this page. [Add comment]