POV-Ray : Newsgroups : povray.newusers : Any help in colors and java convertions ? : Re: Any help in colors and java convertions ? Server Time
6 Dec 2021 16:32:24 EST (-0500)
  Re: Any help in colors and java convertions ?  
From: Bald Eagle
Date: 28 Sep 2019 16:35:00
Message: <web.5d8fc2e7ad658b704eec112d0@news.povray.org>
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.

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.)

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


Post a reply to this message

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