Maxima Function
make_level_picture (data)
make_level_picture(data,width,height)
Returns a levels picture
object. make_level_picture (data)
builds the picture
object from matrix data.
make_level_picture (data,width,height)
builds the object from a list of numbers; in this case, both the
width and the height must be given.
The returned picture
object contains the following
four parts:
Argument data must contain only numbers ranged from 0 to 255; negative numbers are substituted by 0, and those which are greater than 255 are set to 255.
Example:
Level picture from matrix.
(%i1) load(draw)$ (%i2) make_level_picture(matrix([3,2,5],[7,-9,3000])); (%o2) picture(level, 3, 2, {Array: #(3 2 5 7 0 255)})
Level picture from numeric list.