Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.06 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.06 KB

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.