RGB / RGBA parsing / formatting
C
Latest commit 2050b56 Oct 11, 2013 TJ Holowaychuk wtf
Permalink
Failed to load latest commit information.
src formatting Jul 4, 2012
.gitignore
History.md
Makefile Initial commit Jul 4, 2012
Readme.md docs Oct 10, 2013
package.json
test.c Initial commit Jul 4, 2012

Readme.md

rgba

RGB / RGBA parsing / formatting.

Installation

Install with clib:

$ clib install clibs/rgba

API

typedef struct {
  double r, g, b, a;
} rgba_t;

rgba_t
rgba_new(uint32_t rgba);

uint32_t
rgba_from_string(const char *str, short *ok);

void
rgba_to_string(rgba_t rgba, char *buf, size_t len);

void
rgba_inspect(uint32_t rgba);