Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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.

Example:
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)

Result:
A display is shown where the points that are
nearer to the center are darker than the
points that are further away.



(C) MD*TECH Method and Data Technologies, 05.02.2006