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.
Color Scripts
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 4027
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Color Scripts
Hi Zax,
Thank you for this stack. I is very nicely done and comes in handy.
Kind regards
Bernd
Thank you for this stack. I is very nicely done and comes in handy.
Kind regards
Bernd
Re: Color Scripts
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
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
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
The version in my initial post contained a bug, so I just edited it to put a new version.