13 lines
317 B
D
13 lines
317 B
D
|
|
module sixel_hls;
|
||
|
|
|
||
|
|
import st;
|
||
|
|
import patches;
|
||
|
|
|
||
|
|
static if (isPatchEnabled!"SIXEL_PATCH") {
|
||
|
|
// HLS color conversion for sixel graphics
|
||
|
|
|
||
|
|
extern(C) {
|
||
|
|
void hls_to_rgb(int h, int l, int s, ubyte* r, ubyte* g, ubyte* b);
|
||
|
|
void rgb_to_hls(ubyte r, ubyte g, ubyte b, int* h, int* l, int* s);
|
||
|
|
}
|
||
|
|
}
|