Skip to content

lemonlime4/chromua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chromua

A color conversion library in the Uiua language.

The examples are best viewed with the --window feature or on the pad.

Color space conversions

There is a function XToY for any two of the following color spaces:

Name Color space
Srgb sRGB
Linear linear sRGB
Oklab Oklab
Oklch Oklch (hue in radians)
Oklchd Oklch (hue in degrees)
Hsv HSV-transformed sRGB (hue in radians)
Hsvd HSV (hue in degrees)

Also, SrgbToX conversions are aliased to just X, following the hsv primitive.

Conversions require the input array to have (a leading axis of) length 3, instead of having a trailing axis of length 3. This makes it easier to operate on color channels.

However, to allow grayscale images, conversions between Srgb and Linear can take a number array of any shape.

About

Facilities for working with color in the Uiua programming language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors