Fixed lume.color example in README

This commit is contained in:
rxi 2015-05-09 15:21:08 +01:00
parent 84e23cb82c
commit e0d55c8446

View File

@ -420,7 +420,7 @@ values are multiplied by the number `mul` if it is provided.
lume.color("#ff0000") -- Returns 1, 0, 0, 1 lume.color("#ff0000") -- Returns 1, 0, 0, 1
lume.color("rgba(255, 0, 255, .5)") -- Returns 1, 0, 1, .5 lume.color("rgba(255, 0, 255, .5)") -- Returns 1, 0, 1, .5
lume.color("#00ffff", 256) -- Returns 0, 256, 256, 256 lume.color("#00ffff", 256) -- Returns 0, 256, 256, 256
lume.color("rgb(255, 0, 0, 1)", 256) -- Returns 256, 0, 0, 256 lume.color("rgb(255, 0, 0)", 256) -- Returns 256, 0, 0, 256
``` ```
### lume.rgba(color) ### lume.rgba(color)