Question: HSV color space drawing

Hi,

I'm playing at the moment with some calcuations on color space and even after a lot of trials on different softwares including photoshop and Igor Pro, I cannot obtain what I want... The advantage with Maple is that if I get this color space I will be then able to animate a point at the surface to describes the color evolution of a system... And that's what I try to do...

The idea is quiet simple but necessits the use of procedure and I'm not so good for that.

Well, the HSV color space is a kind of conic representation of the colors with:

H (Hue), the color description in degree (0° = red, 120° = green, 240° = blue and so on).

S (Saturation),  the radius (S= 1 for the full color and the closer it is to 0, the closer it is to white)

V (Value), with 0 for black to 1 = white.

 

These can be represented in cylindrical coordinates (r,theta,z) with r=S, theta=H and z=V.

 

I'm not interested by V but only by H and S and the idea is to plot a perfect HSV color space for V =1. This should give a disk and each point on this disk is characterised by a color (RGB in Maple).

I tried with a procedure using :

This  gives the a section of disk with the wished color. But as the idea is to get it for all colors we have H=[0..360] and S =[0..1] so if I want to work 100 values of S for each H I have to plot (and also to write...) 360*100=36000 equations which is quiet long, with all the time a good value for R,G and B.

 

I think I can simplify it with a procedure in which we plot 36000 portions of disk with the correponding value fr R,G and B in function of r and theta (z is kept constant =0).

Does somebody has an idea about how to get it ? if possible with a a surface style for each portion of disk ?

At the end I add the animation (for example in z=1) and I export everything in .gif format. (I already have this part).

 

Thanks,

 

Lisa

Please Wait...