POV-Ray : Newsgroups : povray.general : colors map interpolation : colors map interpolation Server Time
29 Mar 2024 07:51:32 EDT (-0400)
  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-2023 Persistence of Vision Raytracer Pty. Ltd.