POV-Ray : Newsgroups : povray.general : colors map interpolation : colors map interpolation Server Time
26 Nov 2022 04:46:06 EST (-0500)
  colors map interpolation  
From: kurtz le pirate
Date: 20 Nov 2022 11:28:21
Message: <637a55a5$1@news.povray.org>
Hello,

Let's assume that we have a colors map :
#declare MyColorMap = color_map {
  [ 0.00 rgb < 1.00, 0.00, 0.00> ]
  [ 0.50 rgb < 1.00, 1.00, 0.00> ]
  [ 1.00 rgb < 0.00, 0.00, 1.00> ]
  }

Is there a way to recover the color for specific index ?
Something that looks like : GetColor(MyColorMap, index)





-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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