Class TinyColorExtensions
Provides extension methods for the TinyColor struct.
public static class TinyColorExtensions
- Inheritance
-
TinyColorExtensions
- Inherited Members
Methods
ToHex(TinyColor)
Converts a TinyColor to a hexadecimal string representation (RRGGBBAA).
public static string ToHex(this TinyColor color)
Parameters
colorTinyColorThe TinyColor to convert.
Returns
- string
A string representing the color in hexadecimal format (e.g., "FF0000FF" for red).
ToUnityColor(TinyColor)
Converts a TinyColor to a Unity UnityEngine.Color.
public static Color ToUnityColor(this TinyColor color)
Parameters
colorTinyColorThe TinyColor to convert.
Returns
- Color
A Unity Color representation of the TinyColor.