From Wikipedia, the free encyclopedia
All 49 tests passed.
test_ColourSpaceModule
|
Text |
Expected |
Actual
|
Y
|
{{#invoke:Sandbox/isaacl/ColourSpace|convertColour|127|0|255|to=sRGB}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{#invoke:Sandbox/isaacl/ColourSpace|convertColour|127|0|255}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{#invoke:Sandbox/isaacl/ColourSpace|convertColour|127|0|255|to=sRGB24bitHex}}
|
#7F, #00, #FF
|
#7F, #00, #FF
|
test_Colour_convert_template_W3Cnames
|
Text |
Expected |
Actual
|
Y
|
{{User:Isaacl/Colour convert|70|130|180|to=W3Cnames}}
|
steelblue
|
steelblue
|
Y
|
{{User:Isaacl/Colour convert|0|255|127|to=W3Cnames}}
|
springgreen
|
springgreen
|
Y
|
{{User:Isaacl/Colour convert|102|205|170|to=W3Cnames}}
|
mediumaquamarine
|
mediumaquamarine
|
Y
|
{{User:Isaacl/Colour convert|102|51|153|to=W3Cnames}}
|
rebeccapurple
|
rebeccapurple
|
Y
|
{{User:Isaacl/Colour convert|steelblue|from=W3Cnames}}
|
70, 130, 180
|
70, 130, 180
|
Y
|
{{User:Isaacl/Colour convert|springgreen|from=W3Cnames}}
|
0, 255, 127
|
0, 255, 127
|
Y
|
{{User:Isaacl/Colour convert|mediumaquamarine|from=W3Cnames}}
|
102, 205, 170
|
102, 205, 170
|
Y
|
{{User:Isaacl/Colour convert|rebeccapurple|from=W3Cnames}}
|
102, 51, 153
|
102, 51, 153
|
Y
|
{{User:Isaacl/Colour convert|mediumaquamarine|from=W3Cnames|to=sRGB}}
|
40%, 80.392156862745%, 66.666666666667%
|
40%, 80.392156862745%, 66.666666666667%
|
Y
|
{{User:Isaacl/Colour convert|adamantine|from=W3Cnames|to=}}
|
InvalidValue badInputValues
|
InvalidValue badInputValues
|
Y
|
{{User:Isaacl/Colour convert|112|205|170|to=W3Cnames}}
|
InvalidValue conversionError 112, 205, 170
|
InvalidValue conversionError 112, 205, 170
|
Y
|
{{User:Isaacl/Colour convert|rebeccapurple|from=W3Cnames|to=sRGB24bitHexString}}
|
#663399
|
#663399
|
Y
|
{{User:Isaacl/Colour convert|#663399|to=W3Cnames|from=sRGB24bitHexString}}
|
rebeccapurple
|
rebeccapurple
|
test_Colour_convert_template_identity
|
Text |
Expected |
Actual
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|to=sRGB24bit}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|to=sRGB24bit|separator=---}}
|
127---0---255
|
127---0---255
|
Y
|
{{User:Isaacl/Colour convert|#7F|#00|#FF|from=sRGB24bitHex|to=sRGB24bitHex}}
|
#7F, #00, #FF
|
#7F, #00, #FF
|
Y
|
{{User:Isaacl/Colour convert|49.8039291568627%|0%|100%|from=sRGB|to=sRGB}}
|
49.8039291568627%, 0%, 100%
|
49.8039291568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|#7F00FF|to=sRGB24bitHexString}}
|
#7F00FF
|
#7F00FF
|
test_Colour_convert_template_sRGB
|
Text |
Expected |
Actual
|
Y
|
{{User:Isaacl/Colour convert|49.803921568627%|0%|100%|from=sRGB|to=sRGB24bit}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|49.803921568627%|0%|100%|from=sRGB|to=sRGB24bitHex}}
|
#7F, #00, #FF
|
#7F, #00, #FF
|
Y
|
{{User:Isaacl/Colour convert|49.803921568627%|0%|100%|from=sRGB}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|49.803921568627%|0%|100%|to=sRGB24bit}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|49.803921568627%|0%|100%|to=sRGB24bitHex}}
|
#7F, #00, #FF
|
#7F, #00, #FF
|
Y
|
{{User:Isaacl/Colour convert|49.803921568627%|0%|100%}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|49.803921568627%|0%|100%|to=sRGB24bitHexString}}
|
#7F00FF
|
#7F00FF
|
test_Colour_convert_template_sRGB24bit
|
Text |
Expected |
Actual
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|from=sRGB24bit}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|from=sRGB24bit|separator=:}}
|
49.803921568627%:0%:100%
|
49.803921568627%:0%:100%
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|from=sRGB24bit|to=sRGB}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|127|0|255}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|separator=:}}
|
49.803921568627%:0%:100%
|
49.803921568627%:0%:100%
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|to=sRGB}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|127|0|255|to=sRGB24bitHexString}}
|
#7F00FF
|
#7F00FF
|
test_Colour_convert_template_sRGB24bitHex
|
Text |
Expected |
Actual
|
Y
|
{{User:Isaacl/Colour convert|#7F|#00|#FF|from=sRGB24bitHex|to=sRGB24bit}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|#7F|#00|#FF|to=sRGB24bit}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|#7F|#00|#FF|to=sRGB}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|#7F|#00|#FF|to=sRGB24bitHexString}}
|
#7F00FF
|
#7F00FF
|
test_Colour_convert_template_sRGB24bitHexString
|
Text |
Expected |
Actual
|
Y
|
{{User:Isaacl/Colour convert|#7F00FF|from=sRGB24bitHexString|to=sRGB24bit}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|#7F00FF|from=sRGB24bitHexString|to=sRGB}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|#7f00ff|from=sRGB24bitHexString}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|#a2f|from=sRGB24bitHexString}}
|
170, 34, 255
|
170, 34, 255
|
Y
|
{{User:Isaacl/Colour convert|#a2f|from=sRGB24bitHexString|to=sRGB24bitHex}}
|
#AA, #22, #FF
|
#AA, #22, #FF
|
Y
|
{{User:Isaacl/Colour convert|#7F00FF|to=sRGB24bit}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|#7F00FF|to=sRGB}}
|
49.803921568627%, 0%, 100%
|
49.803921568627%, 0%, 100%
|
Y
|
{{User:Isaacl/Colour convert|#7f00ff}}
|
127, 0, 255
|
127, 0, 255
|
Y
|
{{User:Isaacl/Colour convert|#a2f}}
|
170, 34, 255
|
170, 34, 255
|
Y
|
{{User:Isaacl/Colour convert|#a2f|to=sRGB24bitHex}}
|
#AA, #22, #FF
|
#AA, #22, #FF
|
Can I suggest another output format: the W3C relative luminance value, as calculated by {{RGBColorToLum}} and documented there and at the W3C? —[AlanM1(talk)]— 01:40, 17 March 2013 (UTC)[reply]