add vdk_colors and vdk_names libs

This commit is contained in:
2023-08-12 18:19:52 -06:00
parent 29defebc2e
commit d64045f0d7
13 changed files with 4425 additions and 1 deletions
+38
View File
@@ -0,0 +1,38 @@
/**
* Miscellaneous helper functions for RGB/HSV color arithmetic
*
* Reference: https://en.wikipedia.org/wiki/HSL_and_HSV
*
* @module
*/
export {
};
export type {
rgb
}
/**
* standard red-green-blue color representation
*
* attributes `r`, `g` and `b` each are integers ranging within `0..255` inclusive
*/
type rgb
= {r : number,
g : number,
b : number};
/**
* hue-saturation-value color representation
*
- * `h` is an inte
*/
type hsv
= {h : number,
s : number,
v : number};