Yet another gem for my Validations library. I should probably separate out the
conversion stuff as a conversions library.
Bob S
> On Aug 7, 2024, at 11:14 AM, Richard Gaskin via use-livecode
> wrote:
>
> Paul Dupuis wrote:
>
>> I can always write a routine to convert RGB to Hex and Hex to
Paul Dupuis wrote:
> I can always write a routine to convert RGB to Hex and Hex to RGB, but
> I am wondering if there is some clever trick in Livecode to do this.
>
> For example: answer color -- returns RGB, but the htmlText of a line
> wants
If the target of the htmlText is a LiveCode field,
Wow Andreas!
You win on the best response!
A free library of 70 color functions is way more than I need (but will
likely need more than I think I do)
Thank you.
On 8/7/2024 12:24 PM, Andreas Bergendal via use-livecode wrote:
No need to reinvent that particular wheel when the awesome guys at
Also
https://dev.to/hichem-mg/comprehensive-guide-converting-rgb-color-to-hex-code-2fcb
Google is your friend. :-)
Bob S
On Aug 7, 2024, at 9:04 AM, Paul Dupuis via use-livecode
wrote:
You have RGB colors (0-255,0-255,0-255), Hex colors (#00 - #FF) and
named colors ("blue") in Live
No need to reinvent that particular wheel when the awesome guys at
FerrusLogic has had us covered for years:
https://github.com/Ferruslogic/TinyColor
/Andreas
ons 7 aug. 2024 kl. 18:18 skrev Craig Newman via use-livecode <
use-livecode@lists.runrev.com>:
> Hi.
>
> If Paul’s post is not viable, I
Hi.
If Paul’s post is not viable, I don’t think there is any native gadget (like
“convert”) that applies to the different color formats. Fairly simple to roll
your own, depending on how comprehensive you need it.
Craig
> On Aug 7, 2024, at 12:04 PM, Paul Dupuis via use-livecode
> wrote:
>
>
I found a private function in the Quartam PDF Library. I don’t want to post it
here because I don’t know the licensing. I believe it was a purchased product.
If you have it you can probably find it. Otherwise it shouldn’t be too
difficult to do the math.
Bob S
> On Aug 7, 2024, at 9:04 AM, P