Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
RGB / RGBA parsing / formatting
C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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);
Something went wrong with that request. Please try again.