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
18mal_export str CLRbatColor(bat *ret, const bat *l);
19mal_export str CLRbatStr(bat *ret, const bat *l);
20mal_export str CLRbatRed(bat *ret, const bat *l);
21mal_export str CLRbatGreen(bat *ret, const bat *l);
22mal_export str CLRbatBlue(bat *ret, const bat *l);
23mal_export str CLRbatSaturation(bat *ret, const bat *l);
24mal_export str CLRbatValue(bat *ret, const bat *l);
25mal_export str CLRbatHue(bat *ret, const bat *l);
26mal_export str CLRbatHueInt(bat *ret, const bat *l);
27mal_export str CLRbatSaturationInt(bat *ret, const bat *l);
28mal_export str CLRbatValueInt(bat *ret, const bat *l);
29mal_export str CLRbatLuminance(bat *ret, const bat *l);
30mal_export str CLRbatCr(bat *ret, const bat *l);
31mal_export str CLRbatCb(bat *ret, const bat *l);
32
33mal_export str CLRbatHsv(bat *ret, const bat *l, const bat *bid2, const bat *bid3);
34mal_export str CLRbatRgb(bat *ret, const bat *l, const bat *bid2, const bat *bid3);
35mal_export str CLRbatycc(bat *ret, const bat *l, const bat *bid2, const bat *bid3);
36#endif
37