picture - creates a picture

picture( Width, Height, Xmin = -10, Xmax = 10, Bottom = -10, Top = 10, Color = [[1,1,1]] )

picture creates a picture variable which is Width x Height pixels, with the background color set to Color.

Width and Height must be integers above zero.
Xmin, Xmax, Bottom & Top must bu real numbers where Xmin < Xmax & Bottom < Top.
These four variables can later be changed by set_window.
Color must be a color matrix.

Only Width and Height must be specified.

pic = picture( 400, 300, [[1,0,0]] )   creates a red picture of 400x400 pixels

show pic

See also
set_window | show