Gondwana Game Engine Development (master) - 2.7.0
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.
Loading...
Searching...
No Matches
TilesheetMaskDefinition.cs
1using System.ComponentModel;
2
4
12public sealed class TilesheetMaskDefinition
13{
17 [Description("Red component (0 to 255) of the image color matched by the mask.")]
18 public byte Red { get; set; }
19
23 [Description("Green component (0 to 255) of the image color matched by the mask.")]
24 public byte Green { get; set; }
25
29 [Description("Blue component (0 to 255) of the image color matched by the mask.")]
30 public byte Blue { get; set; }
31
36 [Description("Alpha component (0 to 255) of the mask color; 255 is fully opaque.")]
37 public byte Alpha { get; set; } = 255;
38
48 [Description(
49 "Maximum allowed difference per color component when matching the mask color. 0 requires an exact match; larger values match more colors.")]
50 public byte Tolerance { get; set; } = 5;
51}
Defines a color mask used to identify and process specific colors within a tilesheet image.
byte Tolerance
Gets or sets the tolerance value for color matching, allowing colors within a range to be considered ...
byte Alpha
Gets or sets the alpha (opacity) component of the mask color (0-255).
byte Blue
Gets or sets the blue component of the mask color (0-255).
byte Red
Gets or sets the red component of the mask color (0-255).
byte Green
Gets or sets the green component of the mask color (0-255).