Re: RGB color cube & HLS color cone
- To: mathgroup at smc.vnet.net
- Subject: [mg19741] Re: RGB color cube & HLS color cone
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 15 Sep 1999 03:52:58 -0400
- Organization: Universitaet Leipzig
- References: <7redsv$484@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Dick Phillips wrote: > > Has anyone developed code to display a 3D RGB color cube and/or a 3D HLS > color cone? I'd like to be able to rotate, slice, etc. such objects. > Thanks for any suggestions. > > Dick Phillips Hi, the RGB cube is easy: rgbcube = Table[{SurfaceColor[RGBColor[r, g, b]], Cuboid[{10.5r, 10.5g, 10.5b}]}, {r, 0, 1, 0.1}, {g, 0, 1, 0.1}, {b, 0, 1, 0.1}]; rgbgraph = Show[Graphics3D[rgbcube]] For interactive viewing you can try MathGL3d at http://www.mpae.gwdg.de/~kuska/mview3d.html but the there is no support for slicing. Hope that helps Jens