mirror of
https://github.com/wahyd4/shape-shifter.git
synced 2026-08-09 04:46:32 +10:00
14 lines
228 B
JavaScript
14 lines
228 B
JavaScript
|
|
S.Color = function (r, g, b, a) {
|
|
this.r = r;
|
|
this.g = g;
|
|
this.b = b;
|
|
this.a = a;
|
|
};
|
|
|
|
S.Color.prototype = {
|
|
render: function () {
|
|
return 'rgba(' + this.r + ',' + this.g + ',' + this.b + ',' + this.a + ')';
|
|
}
|
|
};
|