Group: | Plot Manipulation |
See also: | createcolor |
Function: | freecolor | |
Description: | Deallocates the colors that were allocated by the user or by the system. |
Usage: | freecolor({option}) | |
Input: | ||
option | optional string; option = "user": to free the colors which were allocated by the user by means of createcolor option = "color": to free the system colors (only by TrueColor-Monitor) freecolor() without option means that both color classes will be deallocated. |
x=uniform(10000, 2)*2-1 z=x.*x z=z[,1]+z[,2] z=z/max(z) z=z*248 grey=z~z~z freecolor() createcolor(grey) z=x~z setmaskp(z, grey, 8, 5) d=createdisplay(1, 1) show(d, 1, 1, z)
A display is shown where the points that are nearer to the center are darker than the points that are further away.