Multiple function refactor
This commit is contained in:
parent
5ee30f8b21
commit
3b64a2af03
1 changed files with 7 additions and 7 deletions
|
@ -3,15 +3,15 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
make.colors = {
|
make.colors = {
|
||||||
colors: function () {
|
any: function () {
|
||||||
return random.pick([
|
return random.pick([
|
||||||
make.colors.colorRGB,
|
make.colors.rgb,
|
||||||
make.colors.colorHSL,
|
make.colors.hsl,
|
||||||
make.colors.colorKeywords
|
make.colors.keyword
|
||||||
]);
|
]);
|
||||||
},
|
},
|
||||||
|
|
||||||
colorRGB: function () {
|
rgb: function () {
|
||||||
let values;
|
let values;
|
||||||
|
|
||||||
switch (random.number(4)) {
|
switch (random.number(4)) {
|
||||||
|
@ -38,7 +38,7 @@ make.colors = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
colorHSL: function () {
|
hsl: function () {
|
||||||
let values, opt;
|
let values, opt;
|
||||||
|
|
||||||
switch (random.number(4)) {
|
switch (random.number(4)) {
|
||||||
|
@ -58,7 +58,7 @@ make.colors = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
colorKeywords: function () {
|
keyword: function () {
|
||||||
return random.pick([
|
return random.pick([
|
||||||
"lime", "red", "blue", "invert", "currentColor", "ActiveBorder", "ActiveCaption",
|
"lime", "red", "blue", "invert", "currentColor", "ActiveBorder", "ActiveCaption",
|
||||||
"AppWorkspace", "Background", "ButtonFace", "ButtonHighlight", "ButtonShadow",
|
"AppWorkspace", "Background", "ButtonFace", "ButtonHighlight", "ButtonShadow",
|
||||||
|
|
Loading…
Reference in a new issue