Multiple function refactor

This commit is contained in:
pyoor 2017-04-25 11:15:07 -04:00
parent 5ee30f8b21
commit 3b64a2af03

View file

@ -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",