From e0d55c844696a28d782591d00c71cf16ac55e013 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 9 May 2015 15:21:08 +0100 Subject: [PATCH] Fixed lume.color example in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a43bff7..a986a91 100644 --- a/README.md +++ b/README.md @@ -417,10 +417,10 @@ Takes color string `str` and returns 4 values, one for each color channel (`r`, `g`, `b` and `a`). By default the returned values are between 0 and 1; the values are multiplied by the number `mul` if it is provided. ```lua -lume.color("#ff0000") -- Returns 1, 0, 0, 1 -lume.color("rgba(255, 0, 255, .5)") -- Returns 1, 0, 1, .5 -lume.color("#00ffff", 256) -- Returns 0, 256, 256, 256 -lume.color("rgb(255, 0, 0, 1)", 256) -- Returns 256, 0, 0, 256 +lume.color("#ff0000") -- Returns 1, 0, 0, 1 +lume.color("rgba(255, 0, 255, .5)") -- Returns 1, 0, 1, .5 +lume.color("#00ffff", 256) -- Returns 0, 256, 256, 256 +lume.color("rgb(255, 0, 0)", 256) -- Returns 256, 0, 0, 256 ``` ### lume.rgba(color)