MathGroup Archive 2009

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

Search the Archive

Re: Color depth - Wikipedia, the free encyclopedia

  • To: mathgroup at smc.vnet.net
  • Subject: [mg105182] Re: Color depth - Wikipedia, the free encyclopedia
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Mon, 23 Nov 2009 06:54:20 -0500 (EST)

On 11/22/09 at 6:11 AM, rlbagula at sbcglobal.net (Roger Bagula) wrote:

>http://en.wikipedia.org/wiki/Color_depth

>Does anyone know how to access thousand and millions of colors in
>Mathematica?

In Mathematica, color (RGBColor) is determined by a set of three
to four real values from 0 to 1. The fourth value is the alpha
channel (opacity) and defaults to 1 when only r,g,b values are given.

=46or millions of colors, each channel is normally represented as
an 8-bit value. So, here is an example of converting a
Mathematica RGBColor to 8-bits per channel

In[4]:= Round[255 List @@ ColorData[1][1]]

Out[4]= {63,61,153}

This particular color is the default color used by Plot and
ListPlot when plotting a single curve or data set.



  • Prev by Date: Re: Color depth - Wikipedia, the free encyclopedia
  • Next by Date: how to read in a number in hex and convert it to binary
  • Previous by thread: Re: Re: Color depth - Wikipedia, the free encyclopedia
  • Next by thread: Information about method and parameters used in NDSolve