Skip to content

MonoColorExtensions Class

Extension methods for Microsoft.Xna.Framework.Color that enable operations involving SadRogue.Primitives.Color.

C#
public static class MonoColorExtensions

Inheritance object

Converts from Microsoft.Xna.Framework.Color to SadRogue.Primitives.Color.

C#
public static Color ToSadRogueColor(this Color self)

self Microsoft.Xna.Framework.Color

SadRogue.Primitives.Color

Compares a Microsoft.Xna.Framework.Color to a SadRogue.Primitives.Color.

C#
public static bool Matches(this Color self, Color other)

self Microsoft.Xna.Framework.Color

other SadRogue.Primitives.Color

bool