|
|
Am 26.04.2018 um 09:15 schrieb Lars R.:
> Hi there,
>
> why does the hexagon pattern in Povray only supports 3 colors?
>
> I'd like to have a hexagonal pattern with 4 or 7 colors, see attached
> images.
And other users might want their hexagonal pattern with 11 colours, or
17, or 32. Or maybe 723.
We can't provide dedicated support for /all/ use cases our users might
come up with; we have to draw a line somewhere.
With a hexagonal pattern, 3 colours is the minimum you need to tile the
plane without having adjacent tiles of same colour, so that's the
"natural" number of colours for that tiling.
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, but it can be done. You'll need a lot of `switch()`, a
bit of trignonometry I guess, and maybe some `mod()` to achieve the
repetition.
Post a reply to this message
|
|