Color library

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
monolifed
Party member
Posts: 192
Joined: Sat Feb 06, 2016 9:42 pm

Color library

Post by monolifed »

https://github.com/monolifed/lua-modules -> color

It can convert between (see explanation in the color lua):
rgba/RGBA/RGBA8
RGBA8/iRGBA8
hsla(hsva)/rgba
hsla(hsva)/HSLA(HSVA)

It can also check validity of ranges of the above types

It can parse color strings:
#123/#112233/#11223344
HSL(1, 2, 3)
hsla(0.1, 0.2, 0.3, 0.4)
etc

TODO: add color names
monolifed
Party member
Posts: 192
Joined: Sat Feb 06, 2016 9:42 pm

Re: Color library

Post by monolifed »

Color names has been added (as a separate file)
Post Reply

Who is online

Users browsing this forum: No registered users and 42 guests