Eyeon:Script/Reference/Applications/Fuse/Classes/Image/SetCanvasColor
From VFXPedia
< Eyeon:Script | Reference | Applications | Fuse | Classes | Image
Contents |
Summary
The SetCanvasColor function is used to set the canvas color values of an Image.
The canvas color is the "default" pixel color, and is used for any part of the image which is not explicitly defined by pixels. This is usually black/transparent, but can be different after certain operations, such as inverting the image.
Usage
SetCanvasColor(object pixel)
- pixel
- The Pixel object that is used to set the color values of the image's canvas.
Example
local p = Pixel() p:Clear() img:SetCanvasColor(p) print("Image canvas is now black/transparent")
Tips for SetCanvasColor (edit)
EyeonTips:Script/Reference/Applications/Fuse/Classes/Image/SetCanvasColor