MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How do I create my own color gradient?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92538] Re: How do I create my own color gradient?
  • From: magma <maderri2 at gmail.com>
  • Date: Fri, 3 Oct 2008 06:41:50 -0400 (EDT)
  • References: <gc3j51$sah$1@smc.vnet.net>

Use Blend
The second definition is probably what you are looking for.

	Blend[{Subscript[col, 1],Subscript[col, 2],Subscript[col, 3],\
\[Ellipsis]},x]
linearly interpolates between colors Subscript[col, i] as x varies \
from 0 to 1.





On Oct 3, 12:49 am, Tyler <hayes.ty... at gmail.com> wrote:
> Hi All:
>
> Kinda of a silly question, but I've been banging head against the wall
> for the past two nights. I am trying to figure out how I can make my
> own colour gradient, analogous to Rainbow, AplineColors, &c.
>
> Is there any standard framework around trying to create your own?
> Further, say I wanted one of the preexisting ones, but scaled
> exponentially, or set a particular value to bright yellow (to
> highlight that specific result). I used to use IDL quite a bit, and
> made use of these kinds of manipulations frequently.
>
> Any ideas or references? I keep finding myself doing the same old loop
> in the Documentation Center, from ColorData, to ColorFunction, and so
> on, and so on.....
>
> Cheers,
>
> t.



  • Prev by Date: Re: How do I create my own color gradient? Reply-To: hanlonr@cox.net
  • Next by Date: Re: How do I create my own color gradient?
  • Previous by thread: How do I create my own color gradient?
  • Next by thread: Re: How do I create my own color gradient?