
|
Go to the first, previous, next, last section, table of contents.
- open_canvas(id[,geometry])
-
:: ÉÁ²èÍÑ¥¦¥£¥ó¥É¥¦ (¥¥ã¥ó¥Ð¥¹) ¤òÀ¸À®¤¹¤ë.
- clear_canvas(id,index)
-
:: ¥¥ã¥ó¥Ð¥¹¤ò¥¯¥ê¥¢¤¹¤ë.
- draw_obj(id,index,pointorsegment [,color])
-
:: ¥¥ã¥ó¥Ð¥¹¾å¤ËÅÀ¤Þ¤¿¤ÏÀþʬ¤òÉÁ²è¤¹¤ë.
- draw_string(id,index,[x,y],string [,color])
-
:: ¥¥ã¥ó¥Ð¥¹¾å¤Ëʸ»úÎó¤òÉÁ²è¤¹¤ë.
- return
-
0
- id, index, color, x, y
-
À°¿ô
- pointorsegment
-
¥ê¥¹¥È
- string
-
ʸ»úÎó
-
¤³¤ì¤é¤Ï OpenXM ¥µ¡¼¥Ð `ox_plot' (Windows ¾å¤Ç¤Ï `engine')
¤Ë¤è¤êÄ󶡤µ¤ì¤ë.
-
open_canvas ¤Ï, ÉÁ²èÍѤΥ¦¥£¥ó¥É¥¦(¥¥ã¥ó¥Ð¥¹)¤òÀ¸À®¤¹¤ë.
geometry ¤Ë¤è¤ê¥¦¥£¥ó¥É¥¦¤Î¥µ¥¤¥º¤ò pixel ñ°Ì¤Ç [x,y] ¤Ç»ØÄꤹ¤ë.
default size ¤Ï [300 ,300 ].
¥¥ã¥ó¥Ð¥¹¤Î¼±Ê̻ҤȤ·¤Æ, À°¿ôÃͤò OpenXM ¥µ¡¼¥Ð¤Î¥¹¥¿¥Ã¥¯¤Ë push ¤¹¤ë.
¤³¤Î¼±ÊÌ»Ò¤Ï draw_obj ¤Î¸Æ¤Ó½Ð¤·¤ËɬÍפǤ¢¤ê, ox_pop_cmo ¤Ë
¤è¤ê¼è¤ê½Ð¤·¤ÆÊÝ»ý¤¹¤ëɬÍפ¬¤¢¤ë.
-
clear_canvas ¤Ï, ¥µ¡¼¥Ð id id, ¥¥ã¥ó¥Ð¥¹ id index
¤Ç»ØÄꤵ¤ì¤ë¥¥ã¥ó¥Ð¥¹¤ò¥¯¥ê¥¢¤¹¤ë.
-
draw_obj ¤Ï, ¥µ¡¼¥Ð id id, ¥¥ã¥ó¥Ð¥¹ id index
¤Ç»ØÄꤵ¤ì¤ë¥¥ã¥ó¥Ð¥¹¤ËÅÀ¤Þ¤¿¤ÏÀþʬ¤òÉÁ²è¤¹¤ë. pointorsegment
¤¬ [x,y] ¤Î¾ì¹çÅÀ¤ÎºÂɸ, [x,y,u,v] ¤Î¾ì¹ç [x,y],
[u,v] ¤ò·ë¤ÖÀþʬ¤òɽ¤¹¤È¸«¤Ê¤µ¤ì¤ë.
¥¥ã¥ó¥Ð¥¹¤ÎºÂɸ¤Ï, º¸¾å¶ù¤ò¸¶ÅÀ¤È¤·¤Æ²£Êý¸þ¤Ë
Âè°ìºÂɸ, ½ÄÊý¸þ¤ËÂèÆóºÂɸ¤ò¤È¤ë. ÃÍ¤Ï pixel ñ°Ì¤Ç»ØÄꤹ¤ë.
color ¤Î»ØÄ꤬¤¢¤ë¾ì¹ç, color/65536 mod 256,
color/256 mod 256, color mod 256 ¤ò¤½¤ì¤¾¤ì Red, Green, Blue
¤ÎÃÍ (ºÇÂç 255) ¤È¤ß¤Ê¤¹.
-
draw_string ¤Ï, ¥µ¡¼¥Ð id id, ¥¥ã¥ó¥Ð¥¹ id index
¤Ç»ØÄꤵ¤ì¤ë¥¥ã¥ó¥Ð¥¹¤Ëʸ»úÎó¤òÉÁ²è¤¹¤ë. °ÌÃÖ¤Ï [x,y] ¤Ë¤è¤ê»ØÄꤹ¤ë.
[182] Id=ox_launch_nox(0,"ox_plot");
0
[183] open_canvas(Id);
0
[184] Ind=ox_pop_cmo(Id);
0
[185] draw_obj(Id,Ind,[100,100]);
0
[186] draw_obj(Id,Ind,[200,200],0xffff);
0
[187] draw_obj(Id,Ind,[10,10,50,50],0xff00ff);
0
[187] draw_string(Id,Ind,[100,50],"hello",0xffff00);
0
[189] clear_canvas(Id,Ind);
0
- »²¾È
-
section
ox_launch , ox_launch_nox , ox_shutdown , section ox_reset ,ox_intr ,register_handler , section ox_pop_cmo , ox_pop_local .
Go to the first, previous, next, last section, table of contents.
|