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: setmaskp setmaskl freecolor

Function: createcolor
Description: Allocates the colors for the user

Usage: createcolor(rgb)
Input:
rgb n x 3 matrix; the 3 numbers in each row can take values between 0 and 256. They represent the red, green and blue parts of a color. If you cannot allocate more colors, you can use freecolor(). The maximal number of different rows in rgb is 248.

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 three-dimensional plot is shown where the
points which are nearer	to the center are
displayed darker than the ones that are further.



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