Color Yellow

book_4_sparkGenerated
code_blocksInput

Description

The Color.Yellow field represents a fully opaque yellow color. It is a static member of the Color struct, meaning it can be accessed without instantiating a Color object. This field is useful for quickly accessing a standard yellow color in your application.

Usage

To use the Color.Yellow field, simply reference it directly from the Color struct. This can be useful when you need a predefined yellow color for UI elements, graphics, or any other color-related operations.

Example

// Example of using Color.Yellow in a scene
var yellowColor = Color.Yellow;

// Applying the yellow color to a material
var material = new Material();
material.Color = yellowColor;

// Using the yellow color in a UI element
var button = new UIButton();
button.BackgroundColor = yellowColor;