Type:ColorProfile: Difference between revisions

From Resonite Wiki
create color profile enum page
 
Added a note about ColorX using this type.
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Color Profile is an [[:Category:Enums|Enum]] that stores 3 different values.
{{Infobox Enum
|name=ColorProfile
|type=Elements.Core.ColorProfile
}}


* Linear
Color Profile is an [[:Category:Enums|Enum]] that represents the different color profiles (aka "[https://en.wikipedia.org/wiki/Color_space color spaces]") supported by [[Resonite]] in various scenarios. There are currently three possible color spaces:
* sRGB
* sRGBAlpha


Color profiles determine how RGB values are interpreted onto your screen, and have different visual qualities.
{{Table EnumValues
Color is an opinionated topic, and arguments can be made for how sRGB vs Linear spaces can be better and vice versa.
|Linear|0|Represents an [https://en.wikipedia.org/wiki/SRGB sRGB]-like color space (primaries and white point) with a linear transfer function, and a linear alpha channel.
|sRGB|1|Represents the [https://en.wikipedia.org/wiki/SRGB sRGB] color space, with a linear alpha channel.
|sRGBAlpha|2|Represents the [https://en.wikipedia.org/wiki/SRGB sRGB] color space, with gamma applied to the alpha channel. Note that this profile is deprecated and may be removed in the future.<ref>{{CiteResoniteIssue|1361|color picker does not have option for choosing sRGBAlpha}}</ref>
}}


See also [https://en.wikipedia.org/wiki/Color_model Color models on Wikipedia] (May not be a direct link to Linear color implementation)
Color profiles determine how RGB values are interpreted onto your screen. Doing math operations on colors will have different results depending on the color space, so various color spaces have different usages depending on what you are doing. See [https://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma What every coder should know about gamma] for an overview. You only have to worry about this when directly doing math on color values in [[ProtoFlux]] or similar, passing different color profiles to something like a material color will produce consistent results as Resonite converts internally anyways.


[[Category:Enums]]
This enum is mostly seen on [[Type:ColorX|ColorX]], which carries the color space information in its type.
 
=== See Also ===
* [https://en.wikipedia.org/wiki/HSL_and_HSV HSL & HSV]
* [https://en.wikipedia.org/wiki/Color_space Color Space]

Latest revision as of 14:26, 23 May 2024

Enum
Name: ColorProfile
Type: Elements.Core.ColorProfile

Color Profile is an Enum that represents the different color profiles (aka "color spaces") supported by Resonite in various scenarios. There are currently three possible color spaces:

Values
Name Value Description
Linear 0 Represents an sRGB-like color space (primaries and white point) with a linear transfer function, and a linear alpha channel.
sRGB 1 Represents the sRGB color space, with a linear alpha channel.
sRGBAlpha 2 Represents the sRGB color space, with gamma applied to the alpha channel. Note that this profile is deprecated and may be removed in the future.[1]


Color profiles determine how RGB values are interpreted onto your screen. Doing math operations on colors will have different results depending on the color space, so various color spaces have different usages depending on what you are doing. See What every coder should know about gamma for an overview. You only have to worry about this when directly doing math on color values in ProtoFlux or similar, passing different color profiles to something like a material color will produce consistent results as Resonite converts internally anyways.

This enum is mostly seen on ColorX, which carries the color space information in its type.

See Also