![]() |
Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
|
Defines a color mask used to identify and process specific colors within a tilesheet image. More...
Properties | |
| byte | Red [get, set] |
| Gets or sets the red component of the mask color (0-255). | |
| byte | Green [get, set] |
| Gets or sets the green component of the mask color (0-255). | |
| byte | Blue [get, set] |
| Gets or sets the blue component of the mask color (0-255). | |
| byte | Alpha = 255 [get, set] |
| Gets or sets the alpha (opacity) component of the mask color (0-255). | |
| byte | Tolerance = 5 [get, set] |
| Gets or sets the tolerance value for color matching, allowing colors within a range to be considered matching. | |
Defines a color mask used to identify and process specific colors within a tilesheet image.
The mask uses RGBA color components with a tolerance value to match colors within a specified range. This is commonly used for transparency masking, color keying, or identifying specific tile boundaries.
Definition at line 10 of file TilesheetMaskDefinition.cs.
|
getset |
Gets or sets the alpha (opacity) component of the mask color (0-255).
Defaults to 255 (fully opaque).
Definition at line 31 of file TilesheetMaskDefinition.cs.
|
getset |
Gets or sets the blue component of the mask color (0-255).
Definition at line 25 of file TilesheetMaskDefinition.cs.
|
getset |
Gets or sets the green component of the mask color (0-255).
Definition at line 20 of file TilesheetMaskDefinition.cs.
|
getset |
Gets or sets the red component of the mask color (0-255).
Definition at line 15 of file TilesheetMaskDefinition.cs.
|
getset |
Gets or sets the tolerance value for color matching, allowing colors within a range to be considered matching.
Defaults to 5. Higher values allow more variation in color matching.
A tolerance of 0 requires exact color matches, while higher values allow colors within the specified range to match. For example, a tolerance of 5 would match colors where each component (R, G, B, A) differs by no more than 5 from the mask color.
Definition at line 42 of file TilesheetMaskDefinition.cs.