| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#include <stdbool.h> |
| 14 |
#include <stdio.h> |
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
enum {MAX_COLOR = 1001}; |
| 21 |
|
| 22 |
extern bool knownColorScheme(const char *); |
| 23 |
/* return a list of rgb in hex form: "#ff0000,#00ff00,..." */ |
| 24 |
const char *color_palettes_get(const char *color_palette_name); |
| 25 |
|
| 26 |
extern const float palette_pastel[1001][3]; |
| 27 |
extern const float palette_blue_to_yellow[1001][3]; |
| 28 |
extern const float palette_grey_to_red[1001][3]; |
| 29 |
extern const float palette_white_to_red[1001][3]; |
| 30 |
extern const float palette_grey[1001][3]; |
| 31 |
extern const float palette_primary[1001][3]; |
| 32 |
extern const float palette_sequential_singlehue_red[1001][3]; |
| 33 |
extern const float palette_sequential_singlehue_red_lighter[1001][3]; |
| 34 |
extern const float palette_adam_blend[1001][3]; |
| 35 |
extern const float palette_adam[11][3]; |
| 36 |
|
| 37 |
#ifdef __cplusplus |
| 38 |
} |
| 39 |
#endif |