1 | /* |
2 | * This Source Code Form is subject to the terms of the Mozilla Public |
3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | * |
6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
7 | */ |
8 | |
9 | #ifndef _BATCOLOR_H_ |
10 | #define _BATCOLOR_H_ |
11 | |
12 | #include "gdk.h" |
13 | #include <string.h> |
14 | #include "mal.h" |
15 | #include "color.h" |
16 | #include "mal_exception.h" |
17 | |
18 | mal_export str CLRbatColor(bat *ret, const bat *l); |
19 | mal_export str CLRbatStr(bat *ret, const bat *l); |
20 | mal_export str CLRbatRed(bat *ret, const bat *l); |
21 | mal_export str CLRbatGreen(bat *ret, const bat *l); |
22 | mal_export str CLRbatBlue(bat *ret, const bat *l); |
23 | mal_export str CLRbatSaturation(bat *ret, const bat *l); |
24 | mal_export str CLRbatValue(bat *ret, const bat *l); |
25 | mal_export str CLRbatHue(bat *ret, const bat *l); |
26 | mal_export str CLRbatHueInt(bat *ret, const bat *l); |
27 | mal_export str CLRbatSaturationInt(bat *ret, const bat *l); |
28 | mal_export str CLRbatValueInt(bat *ret, const bat *l); |
29 | mal_export str CLRbatLuminance(bat *ret, const bat *l); |
30 | mal_export str CLRbatCr(bat *ret, const bat *l); |
31 | mal_export str CLRbatCb(bat *ret, const bat *l); |
32 | |
33 | mal_export str CLRbatHsv(bat *ret, const bat *l, const bat *bid2, const bat *bid3); |
34 | mal_export str CLRbatRgb(bat *ret, const bat *l, const bat *bid2, const bat *bid3); |
35 | mal_export str CLRbatycc(bat *ret, const bat *l, const bat *bid2, const bat *bid3); |
36 | #endif |
37 | |