POV-Ray : Newsgroups : povray.general : Hexagon pattern with 4 or 7 colors? : Re: Hexagon pattern with 4 or 7 colors? Server Time
1 May 2024 17:44:09 EDT (-0400)
  Re: Hexagon pattern with 4 or 7 colors?  
From: Bald Eagle
Date: 26 Apr 2018 13:15:01
Message: <web.5ae207e797bd1601c437ac910@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

> If you need a special variant of the hexagonal pattern, you can
> implement it using a function pattern based on a user-defined function.
> It's not easy,

True.  I took a brief stab at this back in the Quantum Dot thread.

> but it can be done.

Yes.  And such a function would be great fun to experiment with.

> You'll need a lot of `switch()`, a
> bit of trignonometry I guess, and maybe some `mod()` to achieve the
> repetition.

Perhaps if the existing POV-Ray internal function code were posted here, that
would provide a good jumping-off point?


Post a reply to this message

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