open_canvasopens a canvas, which is a window for drawing objecgts. One can specifies the size of a canvas in pixel by supplying geometry option [x,y]. The default size is [
300]. This function pushes an integer value onto the stack of the OpenXM server. The value is used to distiguish the opened canvas and one has to pop and maintain the value by
ox_pop_cmofor subsequent calls of
clear_canvasclears a canvas specified by a server id id and a canvas id index.
draw_obj_canvasdraws a point or a line segment on a canvas specified by a server id id and a canvas id index. If pointorsegment is [x,y], it is regarded as a point. If pointorsegment is [x,y,u,v], it is regarded as a line segment which connects [x,y] and [u,v]. If color is specified, color/65536 mod 256, color/256 mod 256, color mod 256 are regarded as the vaules of Red, Green, Blue (Max. 255) respectively.
 Id=ox_launch_nox(0,"ox_plot"); 0  open_canvas(Id); 0  Ind=ox_pop_cmo(Id); 0  draw_obj(Id,Ind,[100,100]); 0  draw_obj(Id,Ind,[200,200],0xffff); 0  draw_obj(Id,Ind,[10,10,50,50],0xff00ff); 0  clear_canvas(Id,Ind); 0
Go to the first, previous, next, last section, table of contents.