pixmapバッファを画面に送信する
show_pixmap()
グラフィックウインドウの pixmap プロパティが "on"の場合, 描画データは画面ではなく,pixmapメモリに送信されます.
pixmap
"on"
show_pixmap()命令はpixmapを画面に送信します.
pixmapモードは滑らかなアニメーションを得るために使用されます. このプロパティはfigureエンティティフィールドの中にあります ( figure_properties参照).
f=gcf();f.pixmap='on'; //pixmapモードを設定 a=gca();a.data_bounds=[0 0; 10 10]; //2つの矩形を構築 xrects([0;10;1;1],5);r1=gce();r1=r1.children; xrects([0;1;1;1],13);r2=gce();r2=r2.children; //アニメーションループ for k=1:1000 //pixmapバッファに矩形を描画 move(r1,[0.01,-0.01]);move(r2,[0.01,0.01]) //pixmapバッファを表示 show_pixmap() end
Serge Steer INRIA