make_random_state SciMax Toolbox make_transform

SciMax Toolbox >> make_rgb_picture

make_rgb_picture

Maxima Function

Calling Sequence

make_rgb_picture (redlevel,greenlevel,bluelevel)

Description

Returns an rgb-coloured picture object. All three arguments must be levels picture; with red, green and blue levels.

The returned picture object contains the following four parts:

  1. from 0 to 255. Each pixel is represented by three consecutive numbers (red, green, blue).

Example:

(%i1) load(draw)$
(%i2) red: make_level_picture(matrix([3,2],[7,260]));
(%o2)           picture(level, 2, 2, {Array:  #(3 2 7 255)})
(%i3) green: make_level_picture(matrix([54,23],[73,-9]));
(%o3)           picture(level, 2, 2, {Array:  #(54 23 73 0)})
(%i4) blue: make_level_picture(matrix([123,82],[45,32.5698]));
(%o4)          picture(level, 2, 2, {Array:  #(123 82 45 33)})
(%i5) make_rgb_picture(red,green,blue);
(%o5) picture(rgb, 2, 2,
              {Array:  #(3 54 123 2 23 82 7 73 45 255 0 33)})
make_random_state SciMax Toolbox make_transform