Skip to content

iskolbin/lryb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status license MIT Licence

RYB

RYB/RGB color conversion functions for Lua. Inspired by question on math.stackexchange.

ryb.ryb2rgb( r, y, b[, convertTable ])

Converts RYB to RGB color scheme, returns triplet. Optional convertTable can be passed, by default uses ryb.IRISSON_RYB_TO_RGB table, alternatively ryb.GOSSET_RYB_TO_RGB can be used. All colors are assumed to be normalized to 1.

ryb.rgb2ryb( r, g, b[, convertTable ])

Converts RGB to RYB color scheme, returns triplet. Optional convertTable can be passed, by default uses ryb.IRISSON_RGB_TO_RYB table. All colors are assumed to be normalized to 1.

About

Lua RYB/RGB color conversion

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages