i'm not sure if this is the correct way to do a heightmap, but check this code out
input "depth",matheight
input "width",matwidth
input "segwidth",matsegx
input "segdepth",matsegz
make matrix 1,matheight,matwidth,matsegx,matsegz
randomize matrix 1,100 : update matrix 1
sync on : sync rate 0
do
for matrixwi=1 to matsegx
for matrixhi=1 to matsegz
white=get matrix height(1,matrixwi,matrixhi)
ink rgb(white,white,white),0
dot matrixhi,matrixwi
if matrixwi<matwidth
else
exit
endif
next matrixhi
next matrixwi
sync : loop
please tell me if i did something wrong otherwise, thank you for looking at the code!
(\__/)
(O.o )
(> < ) This is Bunny. Copy Bunny into your signature to help him on his way to world domination!