POV-Ray : Newsgroups : povray.newusers : Any help in colors and java convertions ? : Re: Any help in colors and java convertions ? Server Time
29 Nov 2021 08:58:18 EST (-0500)
  Re: Any help in colors and java convertions ?  
From: kurtz le pirate
Date: 29 Sep 2019 04:25:55
Message: <5d906a93$1@news.povray.org>
On 28/09/2019 22:30, Bald Eagle wrote:
> 
> kurtz le pirate <kur### [at] gmailcom> wrote:
> 
>> I'm trying to make pictures of the mandelbrot set. I found several
>> examples on the web but I have a problem to adapt the sources.
>      ...
> 
> Looks like the numbers in the java are hexadecimal, so 256f = 9583 and 8f is
> 143.
> The color map will go from _0 to 1_, so you'd need i/1000, and since HSL goes
> from 0 to 360, i'd have _i_ run from 0 to i*(360/1000)
> Not sure why they use i+143 as a divisor, but you can fiddle with that as well.

I'll try it with this... and playing with 0x08 :)


> You'll need to go up to and not including ColorsArray[Max-1], correct?
> (I never use #while, so I'm assuming if you get no errors, that i<Max gives you
> that.)
Array and index is not a problem.


> Maybe check out:
> https://www.youtube.com/watch?v=kY7liQVPQSc
> for more inspiration.

Really interesting link.
Thanks


-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.