KIS (Keep It Simple):
get-random-pastel: does [mold to-binary 255.255.255 - random/secure 15.15.15]
HTH,
-DocKimbel.
[EMAIL PROTECTED] wrote:
>
> I recently "needed" (as in wanted on a whim) a varying range of pastel colors
> for a HTML table.
>
> The code I came up with to convert a rebol tuple (eg 255.0.255) into a HTML
> color spec (#FF00FF) is ungainly to say the least.
>
> Any ideas for a better way? Thanks,
> Sunanda.
>
> ;; ==================
> get-random-pastel: func [/local t1 t2] [
> ;; ==================
>
> t1: 255.255.255 - random/secure 15.15.15
> t2: mold to-binary join to-char t1/1 [to-char t1/2 to-char t1/3]
> replace t2 "{" ""
> replace t2 "}" ""
> return t2
> ]
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.