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/. */
|
||||
|
||||
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",
|
||||
|
|
Loading…
Reference in a new issue