Module:HexShade and Module:HexShade/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
syncing again |
Further simplifications / improvements |
||
Line 46: | Line 46: | ||
if ((r == g) and (g == b)) then |
if ((r == g) and (g == b)) then |
||
S = 0 |
S = 0 |
||
⚫ | |||
⚫ | |||
else |
else |
||
S = (max - min) / (max + min) |
|||
⚫ | |||
else |
|||
⚫ | |||
end |
|||
end |
end |
||
-- luminosity |
-- luminosity |
||
L = (max + min) / (255 * 2) |
L = (max + min) / (255 * 2) |