aboutsummaryrefslogtreecommitdiffstats
path: root/lib/color.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-01 10:17:55 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-01 10:17:55 +0000
commit30fb0dc40d595b9e0b7747ad8e5c4e8cf7e3023b (patch)
treedc56f20ec4d78115e15761c402589b5aec94ef55 /lib/color.moon
parentdefer all scripts (diff)
downloadmmm-30fb0dc40d595b9e0b7747ad8e5c4e8cf7e3023b.tar.gz
mmm-30fb0dc40d595b9e0b7747ad8e5c4e8cf7e3023b.zip
move mmm code from lib to mmm etc
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,
-}