Type:ColorProfile: Difference between revisions

From Resonite Wiki
Rewrite page
m Use new CiteResoniteIssue template for citation
Line 3: Line 3:
* Linear: 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.
* Linear: 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: Represents the [https://en.wikipedia.org/wiki/SRGB sRGB] color space, with a linear alpha channel.
* sRGB: Represents the [https://en.wikipedia.org/wiki/SRGB sRGB] color space, with a linear alpha channel.
* sRGBAlpha: 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>[https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/1361 color picker does not have option for choosing sRGBAlpha]</ref>
* sRGBAlpha: 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>


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.
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]]
[[Category:Enums]]

Revision as of 19:10, 25 February 2024

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:

  • Linear: Represents an sRGB-like color space (primaries and white point) with a linear transfer function, and a linear alpha channel.
  • sRGB: Represents the sRGB color space, with a linear alpha channel.
  • sRGBAlpha: 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.