16static int r2i(
float r) {
18 return (
int)(255 * r + 0.5);
21void rgb2hex(
float r,
float g,
float b,
agxbuf *cstring,
const char *opacity) {
24 if (opacity && strlen(opacity) >= 2) {
static size_t agxbput_n(agxbuf *xb, const char *s, size_t ssz)
append string s of length ssz into xb
static int agxbprint(agxbuf *xb, const char *fmt,...)
Printf-style output to an agxbuf.
void rgb2hex(float r, float g, float b, agxbuf *cstring, const char *opacity)