Hi
I would like to draw the LAB or HSV colour space in 2D (see below) but I don't know how to draw it.
I found some code online (see below) which do something very similar (see the graph below) but NOT the same. The main difference is the colour at the center, it should be white, and the colours should graduately getting more and more saturated instead of one same colour from center all the way to the edge. What do I need to do in order to obtain a plot like the first graph??
r = linspace(0,1,10);theta = linspace(0, 2*pi, 100);[rg, thg] = meshgrid(r,theta);[x,y] = pol2cart(thg,rg);pcolor(x,y,thg);colormap(hsv);shading flat;axis equal;
Best Answer