POV-Ray : Newsgroups : povray.binaries.images : Cylindrical pattern animation - how to get the circles/dots overlap : Re: Cylindrical pattern animation - how to get the circles/dots overlap Server Time
14 Jun 2026 04:10:16 EDT (-0400)
  Re: Cylindrical pattern animation - how to get the circles/dots overlap  
From: Bald Eagle
Date: 13 Jun 2026 08:00:00
Message: <web.6a2d459ca47dc4ffd1d09a9825979125@news.povray.org>
> Are you sure? If I replace them with actual color vectors, I get the
> error message "Parse Error: Expected 'operand', color
>   keyword 'rgb' found instead"!

Absolutely.

You are trying to shove a keyword and a vector into a scalar-only function that
gets parsed by the function VM.


> How can I use real colors instead?

Use a pigment_map. or a color_map.

In that case, you can even get rid of the select() statement.

The _maps do exactly that:  they map the output values of your function to
colors, pigments, textures, normals, or materials.

color_map {
  [ 0.0  rgb <0, 0, 0>]
  [ 0.5  rgb <0, 0, 0>]
  [ 0.5  rgb <1 ,1 ,1>]
  [ 1.0  rgb <1 ,1 ,1>]
}

Double entries at 0.5 give a hard transition.
Now any value below 0.5 will be black, and any value above 0.5 will be white.

- BE


Post a reply to this message

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