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

Home » Public Forums » archive » Re: Another fun question about color in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Another fun question about color in IDL [message #17493 is a reply to message #17490] Wed, 20 October 1999 00:00 Go to previous message
Pavel Romashkin is currently offline  Pavel Romashkin
Messages: 166
Registered: April 1999
Senior Member
I am wondering if using VERT_COLORS in combination with /SHADING will give
the effect you want? You can specify color for each vertex. Here's what Help
says:

VERT_COLORS (Get, Set)
Set this keyword to a vector of colors to be used to draw at each vertex.
Color is interpolated between vertices if SHADING is set to 1 (Gouraud). If
there are more vertices than elements in VERT_COLORS, the elements of
VERT_COLORS are cyclically repeated. By default, the polygons are all drawn
in the single color provided by the COLOR keyword. If this keyword is omitted
or set to a scalar, vertex colors are removed and the surface is drawn in the
color specified by the COLOR keyword.

Good luck,
Pavel

Todd Bowers wrote:

cut - cut

> and tweak it with the SHADE_RANGE keyword which I thought would be
> analagous to the SHADES keyword in shade_surf. No luck. It's only
> a 2 element vector. I'm trying to do something with a palette, but
> I think I'm not grasping the concepts of the obj. graphics model or
> RGB.
>
> Can anyone give me a nudge (or preferably a hard shove) in the
> right direction??
>
> Thanks, as always.
> TB
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: plot axis colors
Next Topic: idl

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

Current Time: Fri Oct 10 03:08:11 PDT 2025

Total time taken to generate the page: 0.00228 seconds