SmartTableColour.h
One function, because an sRGB colour and a linear one are not the same number.
Source/SmartTables/Public/SmartTableColour.h
A colour picker hands you sRGB. So does a hex code off a palette. Slate draws in linear, so passing one straight through gives you a colour nobody chose. Every colour this plugin picks by eye goes through this function, which is why one set of numbers means one colour wherever you read it.
- Namespace
- SmartTable
- Members
- 1
Public functions 1
Srgb
inline FLinearColor Srgb( uint8 R, uint8 G, uint8 B )
Three sRGB numbers as the linear colour Slate draws with.
sRGB is what a colour picker gives back, and what a colour code off a screen means. Slate draws in linear. Every colour this plugin picks by eye goes through here. A handful are written linear straight, where the colour is plain white or plain black and only the alpha carries anything.
Next: SmartTableModel.h