Skip to content

Facilities for working with color in the Uiua programming language.

License

Notifications You must be signed in to change notification settings

lemonlime4/chromua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chromua

Facilities for working with color in the Uiua language.

Currently, there are only conversions between color spaces.

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)

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 (and also simplifies implementations).

The only exception is between Srgb and Linear, which takes a number array of any shape to allow converting grayscale images.

About

Facilities for working with color in the Uiua programming language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published