manganese_serialization_kit v0.2.4 Manganese.SerializationKit.Structs.UnityColor
A Unity color stored in RGB/RGBA format.
This module can be used as an Ecto type for de/serialization when interacting with the database.
Deserialization
See from_string/1
Serialization
The color struct implements the String.Chars
protocol.
Link to this section Summary
Functions
Deserialize a color from a map.
Deserialize a color from a string.
Serialize a color to a map.
The PostgreSQL composite type used to represent a color.
Link to this section Types
A Unity color.
Link to this section Functions
Link to this function
black()
Link to this function
blue()
Link to this function
cyan()
Link to this function
from_map(map)
Deserialize a color from a map.
Link to this function
from_string(string)
Deserialize a color from a string.
The expected format is a "#" followed by 3, 4, 6, or 8 hexadecimal digits.
Link to this function
green()
Link to this function
magenta()
Link to this function
orange()
Link to this function
red()
Link to this function
to_map(unity_color)
Serialize a color to a map.
Link to this function
type()
type()
type() :: :string
type() :: :string
The PostgreSQL composite type used to represent a color.
Link to this function
white()
Link to this function