UNPKG

1.64 kBJavaScriptView Raw
1"use strict";
2// *****************************************************************************
3// Copyright (C) 2019 TypeFox and others.
4//
5// This program and the accompanying materials are made available under the
6// terms of the Eclipse Public License v. 2.0 which is available at
7// http://www.eclipse.org/legal/epl-2.0.
8//
9// This Source Code may also be made available under the following Secondary
10// Licenses when the conditions for such availability set forth in the Eclipse
11// Public License v. 2.0 are satisfied: GNU General Public License, version 2
12// with the GNU Classpath Exception which is available at
13// https://www.gnu.org/software/classpath/license.html.
14//
15// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16// *****************************************************************************
17Object.defineProperty(exports, "__esModule", { value: true });
18exports.Color = void 0;
19var Color;
20(function (Color) {
21 function rgba(r, g, b, a = 1) {
22 return { r, g, b, a };
23 }
24 Color.rgba = rgba;
25 function hsla(h, s, l, a = 1) {
26 return { h, s, l, a };
27 }
28 Color.hsla = hsla;
29 Color.white = rgba(255, 255, 255, 1);
30 Color.black = rgba(0, 0, 0, 1);
31 function transparent(v, f) {
32 return { v, f, kind: 'transparent' };
33 }
34 Color.transparent = transparent;
35 function lighten(v, f) {
36 return { v, f, kind: 'lighten' };
37 }
38 Color.lighten = lighten;
39 function darken(v, f) {
40 return { v, f, kind: 'darken' };
41 }
42 Color.darken = darken;
43})(Color = exports.Color || (exports.Color = {}));
44//# sourceMappingURL=color.js.map
\No newline at end of file