mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
20
Brutal.Numerics/Color/Color.cs
Normal file
20
Brutal.Numerics/Color/Color.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
namespace Brutal.Numerics;
|
||||
|
||||
/// <summary>
|
||||
/// Manages colour globals, and some utilities
|
||||
/// </summary>
|
||||
public static partial class Color
|
||||
{
|
||||
public static readonly Preset Black = byte3.Grayscale(0);
|
||||
public static readonly Preset White = byte3.Grayscale(0xFF);
|
||||
public static readonly Preset Gray = float3.Grayscale(0.5f);
|
||||
public static readonly Preset Clear = byte4.HexColor(0x000000000);
|
||||
|
||||
public static readonly Preset Red = byte3.HexColor(0xFF0000);
|
||||
public static readonly Preset Green = byte3.HexColor(0x00FF00);
|
||||
public static readonly Preset Blue = byte3.HexColor(0x0000FF);
|
||||
|
||||
public static readonly Preset Cyan = byte3.HexColor(0x00FFFF);
|
||||
public static readonly Preset Magenta = byte3.HexColor(0xFF00FF);
|
||||
public static readonly Preset Yellow = byte3.HexColor(0xFFFF00);
|
||||
}
|
||||
Loading…
Reference in a new issue