Skip to content

glisy/color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GlisyColor

Installation

$ clib install glisy/color --save

Usage

main.c:

#include <glisy/color.h>
#include <glisy/math.h>

int
main (void) {
  GlisyColor color;
  vec3 rgb;

  // init color
  glisyColorInit(&color, "blue", 0);

  // set vec3
  vec3_set(rgb, color.r, color.g, color.b);

  // do something with rgb vec...

  return 0;
}

License

MIT