setPixelXYZ

HC Graphics Direct Graphics setPixelXYZ
setPixelXY Line

setPixelXYZ Xcoors Ycoors Zcoors color(s)


For easier and faster plotting the new command has been written: It takes structured X data and equally structured Y and Z data as separate arguments. The type FloatArray is allowed for Xcoors and Ycoors, together with IntArray as colors, so it's fast.

Examples:

cs perspective
x=int [0 1 2 3 4]
y=int [100 98 96 94 92]
z=int [10 20 30 40 50]
setPixelXYZ x y z 0
rotatescene

cs
z=rSeqFA -100 100 5000
x=cos z/10*360
y=sin z/10*360
c=mod (IntArray iSeq 1 count x) 16
setPixelXYZ x*z y*z z*5 c
rotatescene

cs
z=Array rSeq -100 100 5000
x=cos z/10*360
y=sin z/10*360
c=mod (Array iSeq 1 count x) 16
repeat 10 ~
[	setPixelXYZ x*z y*z z*z*#/10 c
	c=rotate c 1
]
rotatescene

Examples:

References:

setPixelXY Line