Page 1 of 1
Color Scripts
Posted: Sat May 11, 2024 10:23 am
by Zax
Hello,
As I often use colors in different formats, and each time I get confused with the conversions, I created a stack which serves as a
library *. Perhaps this library will be useful to others.
* It is not a library in the "LiveCode" sense of the term, but all the functions are grouped in the stack script, so it is easy to make it a "real" library.
Re: Color Scripts
Posted: Sat May 11, 2024 11:13 am
by bn
Hi Zax,
Thank you for this stack. I is very nicely done and comes in handy.
Kind regards
Bernd
Re: Color Scripts
Posted: Sat May 11, 2024 12:29 pm
by stam
Thanks Zax
Also be aware that FerrusLogic released a LiveCode port of the javascript library
TinyColor, and it's pretty amazing.
It does what you describe and a whole lot more. It's a scriptOnlyStack so you can just copy the text to any stack/substack script if you want to obscure it in your app.
Just so you don't need to re-invent the wheel
https://github.com/Ferruslogic/TinyColor
Re: Color Scripts
Posted: Sat May 11, 2024 12:55 pm
by Zax
Thank you for the link,I didn't know about this library, it seems very complete.
Maybe too much for my needs.
Afterwards, it's a habit that I have: I prefer to create my own
simple libraries whenever possible. They are thus easier to manage and do not depend on the goodwill of the developer for the necessary updates.
Furthermore, re-creating the wheel allows me to learn things.
Thanks Bernd for your comment

Re: Color Scripts
Posted: Sun May 12, 2024 9:23 am
by Zax
The version in my initial post contained a bug, so I just edited it to put a new version.