diff --git a/lib/make/colors.js b/lib/make/colors.js index 638a550..92a0a18 100644 --- a/lib/make/colors.js +++ b/lib/make/colors.js @@ -3,15 +3,15 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ make.colors = { - colors: function () { + any: function () { return random.pick([ - make.colors.colorRGB, - make.colors.colorHSL, - make.colors.colorKeywords + make.colors.rgb, + make.colors.hsl, + make.colors.keyword ]); }, - colorRGB: function () { + rgb: function () { let values; switch (random.number(4)) { @@ -38,7 +38,7 @@ make.colors = { } }, - colorHSL: function () { + hsl: function () { let values, opt; switch (random.number(4)) { @@ -58,7 +58,7 @@ make.colors = { } }, - colorKeywords: function () { + keyword: function () { return random.pick([ "lime", "red", "blue", "invert", "currentColor", "ActiveBorder", "ActiveCaption", "AppWorkspace", "Background", "ButtonFace", "ButtonHighlight", "ButtonShadow",