comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Making discrete color table into a continuous one
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Making discrete color table into a continuous one [message #69740] Tue, 09 February 2010 05:46
Dave[3] is currently offline  Dave[3]
Messages: 12
Registered: November 2006
Junior Member
I have the color table blues :(

Does anyone have any tips on how to make a discrete set of 25 colors
into a continuous 255 element color table? The discrete colors are:

rgb = [[153,153,153], $
[212,170,255], $
[178,102,255], $
[127, 0,255], $
[102,140,255], $
[ 0, 63,255], $
[ 0,127,127], $
[102,197,255], $
[102,255,197], $
[ 0,255,159], $
[ 31,255, 0], $
[ 63,127, 0], $
[178,255,102], $
[212,255,170], $
[223,255, 0], $
[255,216,102], $
[255,143, 76], $
[191, 0, 0], $
[255, 0, 95], $
[255,102,159], $
[116, 38,127], $
[127, 0, 0], $
[127, 76, 51], $
[127, 47, 0], $
[ 76, 61, 61]]

I'd like them to transition 'smoothly' from one to the next but I'm
not sure what the best way to do this is.

Thanks.
Dave
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Extract / interpolate in 3d atmospheric field
Next Topic: dereference with wildcard

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:15:51 PDT 2025

Total time taken to generate the page: 0.00434 seconds