RGB / RGBA parsing / formatting
C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
History.md
Makefile
Readme.md
package.json
test.c

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);