-
-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathColor.bs.js
More file actions
24 lines (18 loc) · 610 Bytes
/
Color.bs.js
File metadata and controls
24 lines (18 loc) · 610 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'use strict';
function rgb(r, g, b) {
return "rgb(" + r.toString() + ", " + g.toString() + ", " + b.toString() + ")";
}
function rgba(r, g, b, a) {
return "rgba(" + r.toString() + ", " + g.toString() + ", " + b.toString() + ", " + a.toString() + ")";
}
function hsl(h, s, l) {
return "hsl(" + h.toString() + ", " + s.toString() + "%, " + l.toString() + "%)";
}
function hsla(h, s, l, a) {
return "hsl(" + h.toString() + ", " + s.toString() + "%, " + l.toString() + "%, " + a.toString() + ")";
}
exports.rgb = rgb;
exports.rgba = rgba;
exports.hsl = hsl;
exports.hsla = hsla;
/* No side effect */