float Item { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Item property of the Color struct is a single-precision floating-point value that represents a component of the color. This property is marked with the JsonIgnore attribute, indicating that it should be ignored during JSON serialization and deserialization processes.

Usage

Use the Item property to access or modify a specific component of a Color instance. This property is typically used in conjunction with an indexer to access the red, green, blue, or alpha components of the color.

Example

Color color = new Color(0.5f, 0.4f, 0.3f, 1.0f);
float redComponent = color[0]; // Access the red component
color[1] = 0.5f; // Modify the green component