aboutsummaryrefslogtreecommitdiffstats
path: root/lib/color.moon
diff options
context:
space:
mode:
Diffstat (limited to 'lib/color.moon')
-rw-r--r--lib/color.moon20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/color.moon b/lib/color.moon
deleted file mode 100644
index 6233b47..0000000
--- a/lib/color.moon
+++ /dev/null
@@ -1,20 +0,0 @@
-rgb = (r, g, b) ->
- r, g, b = table.unpack r if 'table' == type r
- "rgb(#{r * 255}, #{g * 255}, #{b * 255})"
-
-rgba = (r, g, b, a) ->
- r, g, b, a = table.unpack r if 'table' == type r
- "rgba(#{r * 255}, #{g * 255}, #{b * 255}, #{a or 1})"
-
-hsl = (h, s, l) ->
- h, s, l = table.unpack h if 'table' == type h
- "hsl(#{h * 360}, #{s * 100}%, #{l * 100}%)"
-
-hsla = (h, s, l, a) ->
- h, s, l, a = table.unpack h if 'table' == type h
- "hsla(#{h * 360}, #{s * 100}%, #{l * 100}%, #{a or 1})"
-
-{
- :rgb, :rgba,
- :hsl, :hsla,
-}