HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2006
0731
¤Þ¤¹VRAM¥Ç¡¼¥¿¤Ë¤Ä¤¤¤Æ13̤²ò·è


¤Þ¤¹

¥ê¥ó¥¯

2006/7/31(Mon) 14:56:48|NO.1662

ÅÙ¡¹¤¹¤ß¤Þ¤»¤ó¡£
¤¤¤Þ¥Ð¥Ã¥Õ¥¡¡¼¤Î¿§¤ò£±¥É¥Ã¥È¤Å¤Ä¼èÆÀ¤·¤Æ½èÍý¤ò¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢
pget¤Ç¤ÏÃÙ¤¹¤®¤Æ¤ä¤Ã¤Æ¤é¤ì¤Þ¤»¤ó¡£
VRAM¥Ç¡¼¥¿¤ËľÀÜ¥¢¥¯¥»¥¹¤¹¤ì¤ÐÁᤤ¤Èʹ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢
¸¡º÷¤·¤¿¤ê¤·¤Æ¤ß¤Æ¤â¤É¤¦¤¹¤ì¤Ð¼èÆÀ¤Ç¤­¤ë¤Î¤«¤ï¤«¤ê¤Þ¤»¤ó¡£
¼èÆÀÊýË¡¤ò¶µ¤¨¤Æ¤â¤é¤¨¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£¤ª´ê¤¤¤·¤Þ¤¹¡ª



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


hiroki

¥ê¥ó¥¯

2006/7/31(Mon) 16:13:37|NO.1664

Ëͤ¬¤¢¤ë²èÁüÊÑ´¹¤Î¤¿¤á¤Ëºî¤Ã¤¿Êª¤ÎÈ´¿è¤Ç¤¹¡£
¤³¤ì°Ê¾å¤ÎÀâÌÀ¤Ï¾Ê¤­¤Þ¤¹¡£
¤³¤ì¤¬²ò¤é¤Ê¤¤¤È¤­¤Ïpget,pset¤ò¤ª»È¤¤¤¯¤À¤µ¤¤¡£


;gsel 2 ;pget x1,cnt ;r=ginfo_r:g=ginfo_g:b=ginfo_b vpos=((winy-1-cnt)*winx*3)+(x1*3) b=peek(vram1,vpos) g=peek(vram1,vpos+1) r=peek(vram1,vpos+2) ;gsel 3 ;color r,g,b ;pset x2,cnt vpos=((winy-1-cnt)*winx*3)+(x2*3) poke vram2,vpos,b poke vram2,vpos+1,g poke vram2,vpos+2,r



hiroki

¥ê¥ó¥¯

2006/7/31(Mon) 16:20:28|NO.1665


mref vram1,66 mref vram2,66 winx=ginfo_winx winy=ginfo_winy

¤ÎÀë¸À¤âɬÍפǤ¹¡£



Drip

¥ê¥ó¥¯

2006/7/31(Mon) 20:53:34|NO.1672

Drip¤Ç¤¹¡£

¡¡¤Þ¤¹¤µ¤ó¡¢¤³¤ó¤Ë¤Á¤Ï¡£VRAM¤ÎľÀÜÁàºî¤Ï½é¿´¼Ô¤Ë¤È¤Ã¤Æ¤Ï¾¯¤·Æñ¤·¤¤¥Æ¡¼¥Þ¤Ç¤¹¤Í¡£
VRAM¤Ë¤Ä¤¤¤Æ´Êñ¤ËÀâÌÀ¤·¤Æ¤ß¤Þ¤¹¡£
VRAM¤Î¾ðÊó¤Ï¡¢mref vram,66¤Ë¤è¤Ã¤Æ¼èÆÀ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ì¤Ë¤è¤Ã¤ÆÆÀ¤é¤ì¤¿¾ðÊó¤Ï¡¢
²èÌ̤κ¸²¼¤«¤é±¦¾å¤Ë¸þ¤«¤Ã¤Æ¡¢ÀÄ¡¢ÎС¢ÀÖ¡¢ÀÄ¡¢ÎС¢ÀÖ¡¥¡¥¡¥¤Î½ç¤Ç¿§¤Î¾ðÊ󤬳ÊǼ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤Þ¤¿¡¢¿ôÃͤÏ1¥Ð¥¤¥Èñ°Ì¤Ê¤Î¤Ç¡¢°·¤¦¤¿¤á¤Ë¤ÏÇÛÎ󻲾Ȥò¹Ô¤¦¤«peek¤Ë¤è¤Ã¤Æ¼è¤ê½Ð¤¹¤·¤«¤¢¤ê¤Þ¤»¤ó¡£

¡¡hiroki¤µ¤ó¤Î¥µ¥ó¥×¥ë¤Ï¾¯¤·°ÕÌ£¤¬¤ï¤«¤ê¤Þ¤»¤ó¤¬¡¢peek¤ò»ÈÍѤ¹¤ëÊýË¡¤Ïpget,pset¤ÎÊýË¡¤è¤ê
Ìó£²ÇÜÄøÅÙ¤·¤«¹â®²½¤Ç¤­¤Þ¤»¤ó¡£µæ¶Ë¤Ê¤Î¤Ï¡¢VRAM¤ËľÀÜÇÛÎ󻲾Ȥò¹Ô¤¤¥Ó¥Ã¥È±é»»¤ò¹Ô¤¦¤³¤È¤Ç¤¹¡£
¹­°è¤Î¥á¥â¥êÁàºîÌ¿Îá¤ò»ÈÍѤ¹¤ë¤Î¤âÍ­¸ú¤Ç¤¹¡£¤³¤ì¤Ê¤é¤Ð¶²¤í¤·¤¤Äø¤Î½èÍý¤Î¹â®²½¤¬´üÂԤǤ­¤Þ¤¹¡£
¤·¤«¤·¤³¤ÎÊýË¡¤Ï¡¢¥¢¥ë¥´¥ê¥º¥à¤Ë¤è¤Ã¤Æ¸Â¤é¤ì¤¿¾õ¶·²¼¤Ç¤·¤«¹Ô¤¨¤Ê¤¤»ö¤¬Â¿¤¤¤Ç¤¹¡£

¡¡¥Ó¥Ã¥È±é»»¤Ë¤è¤ë½èÍý¤Ï¥±¡¼¥¹¥Ð¥¤¥±¡¼¥¹¤Ë¤è¤ë¾¯¤·Æñ¤·¤¤¥×¥í¥°¥é¥à¤ò½ñ¤¯É¬Íפ¬¤¢¤ë¤Î¤Ç
º£²ó¤ÏÃÖ¤¤¤Æ¤ª¤¯¤È¤·¤Æ¡¢VRAM¤ò»ÈÍѤ·¤¿ºÇ¤â´ðËÜŪ¤Ê¥µ¥ó¥×¥ë¤ò°Ê²¼¤ËÍÑ°Õ¤·¤Þ¤·¤¿¡£
¾°¡¢¤³¤Î¥µ¥ó¥×¥ë¤ÏVRAM¤Î°ÕÌ£¤òÍý²ò¤¹¤ë¤¿¤á¤Î¥µ¥ó¥×¥ë¤Ç¤¢¤ê¡¢
¶¯ÎϤʹ⮲½¥¢¥ë¥´¥ê¥º¥à¤òɽ¤¹¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£VRAM¤Î¸¦µæºàÎÁ¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

x=32 //ÀÖ¤¤ÅÀ¤òÂǤĺÂɸ y=24 screen 0,256,256 //¥³¥Ô¡¼¸µ¥¦¥£¥ó¥É¥¦ color 255:pset x,y mref vramA,66 screen 3,ginfo_winx,ginfo_winy //¥³¥Ô¡¼À襦¥£¥ó¥É¥¦ mref vramB,66 p=((ginfo_winy-1-y)*ginfo_winx+x)*3 //¸¡½Ð¤¹¤Ù¤­ºÂɸ¤ò¼èÆÀ //ºÂɸ¤Ï¡¢²èÌ̺¸²¼¤«¤é±¦¾å¤Ë¸þ¤«¤Ã¤Æ //ÀÄ¡¢ÎС¢À֤νç¤Ë1¥Ð¥¤¥È¤º¤Ä³ÊǼ¤µ¤ì¤Æ¤¤¤ë¡£ b=peek(vramA,p) //screen0¤ËÂǤä¿ÅÀ¤Î¿§¤ò¼è¤ê½Ð¤¹ g=peek(vramA,p+1) r=peek(vramA,p+2) poke vramB,p,b //screen3¤Ëscreen0¤ËÂǤä¿ÅÀ¤ÈƱ¤¸°ÌÃÖ¤ËƱ¤¸¿§¤ÎÅÀ¤òÂÇ¤Ä poke vramB,p+1,g poke vramB,p+2,r redraw 1

¾¯¤·Æñ¤·¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¤¬¤ó¤Ð¤Ã¤Æ¤¯¤À¤µ¤¤¡£



Shinya

¥ê¥ó¥¯

2006/7/31(Mon) 20:57:06|NO.1673

¡¡¤Þ¤¹¤µ¤ó¤Ï¤¸¤á¤Þ¤·¤Æ¡£

¡¡VRAM ¤Ï£³¤Ä¤Î¥Ý¥¤¥ó¥È¤ò¤ª¤µ¤¨¤ì¤Ð¡¢°·¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
	buffer 1,0,0 :picload dir_exe + "/docs/cg.gif"
wx = ginfo_winx wy = ginfo_winy // Point ­¡ ; wx ¤¬4¤ÎÇÜ¿ô¤Ç¤Ê¤±¤ì¤Ð¥À¥ß¡¼¤ò²Ã¤¨¤ë( 4¤ÎÇÜ¿ô¤Ë¤¹¤ë ) if wx & 0x00000003 : wx = wx & 0x0ffffffc | 4 ; ; ¢­¤Ï¢¬¤ÈƱ¤¸°ÕÌ£( ¼Â¹Ô®ÅÙ¤¬ÃÙ¤¤ ) ; ; if wx \ 4 : wx = wx + ( 4 - wx \ 4 ) ; ; ÊÑ¿ô VRAM ¤ò¸½ºß¤Î¥Ó¥Ç¥ª¥á¥â¥ê¥Ç¡¼¥¿¤È¤ª¤¯ mref VRAM,66 gsel i = 0 ; (VRAM¥µ¥¤¥º)/3 ʬ·«¤êÊÖ¤¹ (3Byte¤Å¤Ä¼è¤ê½Ð¤¹¤«¤é) repeat wx * wy // Point ­¢ ; VRAM ¤Ï ÀÄ,ÎÐ,ÀÖ ¤Èʤó¤Ç¤¤¤ë¡¡(R,G,B ¤Ç¤Ï¤Ê¤¯ B,G,R ¤Èʤó¤Ç¤¤¤ë) ; 1byte¤á = B (ÀÄ) ; 2byte¤á = G (ÎÐ) ; 3byte¤á = R (ÀÖ) ; ¤³¤ì¤é¤¬Ï¢¤Ê¤Ã¤Æ¤¤¤ë color peek( VRAM,i+2 ),peek( VRAM,i+1 ),peek( VRAM,i ) // Point ­£ ; VRAM ¤Ï¥¹¥¯¥ê¡¼¥ó¤Îº¸²¼¤¬ 0Byte ¤Ë¤Ê¤Ã¤Æ¤¤¤ë ; ¤Ä¤Þ¤ê,º¸²¼¤«¤éÉÁ¤¯¤³¤È¤Ë¤Ê¤ë pos cnt\wx,wy-cnt/wx pset i+3; ¢«RGB¹ç·× 3BYTE ¤ò²Ã¤¨¤ë loop
Point ­¡
¡¡VRAM¤Î¥µ¥¤¥º¤Ï¡¢
¡¡¡¡¼°£±¡§VRAM¥µ¥¤¥º = ¥¹¥¯¥ê¡¼¥ó¤ÎÉý * ¥¹¥¯¥ê¡¼¥ó¤Î¹â¤µ * 3(RGB)
¡¡¤Çµá¤á¤é¤ì¤ë¡£

¡¡¡¡¤·¤«¤·¡¢¥¹¥¯¥ê¡¼¥ó¤ÎÉý¤¬ 4¤ÎÇÜ¿ô¤Ç¤Ê¤¤¤È¤­¡¢VRAM¤Î¥µ¥¤¥º¤¬
¡¡4¤ÎÇÜ¿ô¤Ë¤Ê¤é¤Ê¤¤¤³¤È¤¬¤¢¤ë¡£¤½¤³¤Ç¡¢¥¹¥¯¥ê¡¼¥ó¤ÎÉý¤Ë
¡¡¥À¥ß¡¼¤ò²Ã¤¨¡¢4¤ÎÇÜ¿ô¤Ë¤·¤Æ¤«¤é¡¡¾å¤Î¼° ¤ò»È¤¦¡£

¡¡¥¹¥¯¥ê¡¼¥ó¤ÎÉý¤¬ 4¤ÎÇÜ¿ô¤Ç¡¢¾å¼°¤ò»È¤¦¤ÈVRAM¥µ¥¤¥º¤Ï¡¢É¬¤º 4 ¤Ç³ä¤êÀÚ¤ì¤ë¡£
¡¡¡Ê4 ¤Ç³ä¤êÀÚ¤ì¤ë¤È peek ¤ÎÂå¤ï¤ê¤Ë lpeek ¤¬»È¤¨¤ë¡Ë

Point ­¢
¡¡VRAM ¤Ï1byte¤á¤«¤é ÀÄ,ÎÐ,ÀÖ,ÀÄ,ÎÐ,ÀÖ... ¤¬Â³¤¯

Point ­£
¡¡VRAM ¤Ï²èÁü¤Îº¸²¼¤¬ 0byte ¤Ë¤Ê¤Ã¤Æ¤¤¤ë



Shinya

¥ê¥ó¥¯

2006/7/31(Mon) 21:30:31|NO.1677

¡¡¤¢¤ï¤ï¤Ã¡£NO.1673¤Î¡ÖPoint ­¡¡×¤Î¥À¥ß¡¼¤ò²Ã¤¨¤ë¤ä¤Ä¡£
²¿¤Ç¤½¤ó¤ÊÌÌÅݤʤ³¤È¤¹¤ë¤Î¤«¤Ã¤Æ¤ä¤Ä¡£¡¦¡¦¡¦½ñ¤­Ëº¤ì¤Æ¤¿¡£
¡Ê¼Â¤Ï¡¢Ëͤâ¤è¤¯¤ï¤«¤ó¤Ê¤¤¡£Í½ÁۤʤéΩ¤Æ¤é¤ì¤ë¡Ë

¡¡peek ¤Ç n²ó ·«¤êÊÖ¤¹¤è¤ê¡¢lpeek ¤Ç n/4²ó ·«¤êÊÖ¤¹¤Û¤¦¤¬
Ìó4ÇÜ®¤¤¡£VRAM¥µ¥¤¥º¤¬ 4 ¤ÎÇÜ¿ô¤À¤È¡¢lpeek ¤Ç°ì³ç½èÍý¤¬¤Ç¤­¤ë¡£

¡¡¤·¤«¤·¡¢ÌäÂê¤Ê¤Î¤Ï¡¢VRAM¥µ¥¤¥º¤ò 4¤Ç³ä¤Ã¤¿¤È¤­¤Î;¤ê¤ò¡¢
peek ¤Ç½èÍý¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¡¢¤Û¤«¤ËÍýͳ¤¬¤¢¤ë¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£



¤Þ¤¹

¥ê¥ó¥¯

2006/7/31(Mon) 21:59:28|NO.1679

hiroki¤µ¤ó¡¢Drip¤µ¤ó¡¢Shinya¤µ¤ó¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

hiroki¤µ¤ó¤Î¥µ¥ó¥×¥ë¤Ï¡¢Íý²ò¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡Ä¡£¤¹¤ß¤Þ¤»¤ó¡£
Drip¤µ¤ó¤Î¥µ¥ó¥×¥ë¤Ï¡¢

p=((ginfo_winy-1-y)*ginfo_winx+x)*3 //¸¡½Ð¤¹¤Ù¤­ºÂɸ¤ò¼èÆÀ
¤ÎÉôʬ¤¬Ê¬¤«¤ê¤Þ¤»¤ó¡£Â¾¤Ïʬ¤«¤ë¤Î¤Ç¤¹¤¬¡Ä¡£
(ginfo_winy-1-y)
¤Ïʬ¤«¤ë¤Î¤Ç¤¹¤¬¡¢¤½¤Î¸å¤Î
*ginfo_winx+x
¤Î°ÕÌ£¤¬Îɤ¯Ê¬¤«¤é¤Ê¤¤¤ó¤Ç¤¹¡Ä

Shinya¤µ¤ó¤Î¥µ¥ó¥×¥ë¤Ï¡¢
µ¿ÌäÅÀ¤¬¤¢¤ê¤Þ¤·¤¿¡£
lpeek ¤Ç°ì³ç½èÍý¤¬¤Ç¤­¤ë¤È¤¢¤ê¤Þ¤¹¤¬¡¢
¤È¤¤¤¦¤³¤È¤Ï
BGRB,GRBG,RBGR,¡Ä
¤È¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤·¤Æ¤¤¤¯¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£
ʬ¤«¤ê¤Å¤é¤¯¤¢¤ê¤Þ¤»¤ó¤«¡©


¤¢¤È¡¢¤¤¤Þºî¤Ã¤Æ¤¤¤ë¥¹¥¯¥ê¥×¥È¤Ï¡¢
buffer¤Çºî¤Ã¤¿¥¦¥£¥ó¥É¥¦¤ËÆɤ߹þ¤ó¤À²èÁü¤òÆɤ߹þ¤ß¡¢
¿§¤ò£±¥É¥Ã¥È¤Å¤Ä¼èÆÀ¤·¤Æ¡¢¤½¤ì¤ò²Ã¹©¤·¤Æ¤¤¤Ã¤Æ¤Þ¤È¤á¤Æ¥Õ¥¡¥¤¥ë¤ËÊݸ
¤¹¤ë¤â¤Î¤Ê¤Î¤Ç¤¹¤¬¡¢
¡Ö²èÁü¤Ïº¸¾å¤«¤é±¦²¼¤Ø¡×¤Ã¤Æ¤¤¤¦³µÇ°¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢
Îɤ¯¹Í¤¨¤¿¤é¤½¤ì¤Ë¤È¤é¤ï¤ì¤º¤ËVRAM¤Ë¤·¤¿¤¬¤Ã¤ÆÁ´¤Æ¤Î½èÍý¤ò¤¹¤ì¤Ð³Ú¤À¤È¤¤¤¦¤³¤È¤Ë¡¢
º£µ¤¤¬ÉÕ¤­¤Þ¤·¤¿¡Ê¾Ð¡Ë

³§ÍͤΥµ¥ó¥×¥ë¤ò¸«¤Æ¡¢¤Ê¤ó¤È¤Ê¤¯½èÍýÊýË¡¤¬Æ¬¤ÎÃæ¤Ë¤¦¤«¤ó¤Ç¤­¤¿¤Î¤Ç¡¢
¤¬¤ó¤Ð¤Ã¤Æ¤ß¤è¤¦¤È»×¤¤¤Þ¤¹¡£



hiroki

¥ê¥ó¥¯

2006/8/1(Tue) 08:38:11|NO.1685

¤´¤á¤ó¤Ê¤µ¤¤¡£

¤¿¤À¤Î´û¸¤Î¥½¡¼¥¹¤«¤éÈ´¿è¤·¤¿¤À¤±¤Ç¤¹¡£
¤Ç¤â¡¢¾å¤ËÃí¼á¤¢¤ë¤«¤é²ò¤ë¤«¤Ê¤È»×¤Ã¤Æ¡¦¡¦¡¦¡£(^^;)



Shinya

¥ê¥ó¥¯

2006/8/1(Tue) 22:16:49|NO.1708

>lpeek ¤Ç°ì³ç½èÍý¤¬¤Ç¤­¤ë¤È¤¢¤ê¤Þ¤¹¤¬¡¢
>¤È¤¤¤¦¤³¤È¤Ï
>BGRB,GRBG,RBGR,¡Ä
>¤È¥Ç¡¼¥¿¤ò¼è¤ê½Ð¤·¤Æ¤¤¤¯¤È¤¤¤¦¤³¤È¤Ç¤·¤ç¤¦¤«¡£

¡¡¤¹¤ß¤Þ¤»¤ó¡£¤Þ¤¹¤µ¤ó¤Î¡¢¼ÁÌ䤫¤éÎ¥¤ì¤¿¤³¤È¤ò¤¤¤Ã¤Æ¤¤¤Þ¤·¤¿¡£
¤Ï¡¢VRAM¤ÎÆÃÀ­¤Ë¤Ä¤¤¤Æ½ñ¤­¹þ¤ó¤À¤Ä¤â¤ê¤Ç¤·¤¿¡¦¡¦¡¦¡£

¡¡¤È¤ê¤¢¤¨¤º²èÁü½èÍý¤Ë¤ª¤¤¤Æ lpeek ¤ò»È¤¦¤Î¤Ï¡¢¥Ó¥Ã¥È¿ôÎó(²èÁü)¤Î¥¹¥¯¥í¡¼¥ë¤ä¡¢¥³¥Ô¡¼¤ò¤¹¤ë¤È¤­
¤Ë¸ÂÄꤵ¤ì¤Þ¤¹¡£
/*
screen 0¡¡¤Ë screen 1¡¡¤ÎÆâÍƤò¥³¥Ô¡¼¤¹¤ë¥µ¥ó¥×¥ë */ #define RGB 3 buffer 1,0,0 :picload dir_exe + "/docs/cg.gif" mref VRAM1,66 sx1 = ginfo_winx sy1 = ginfo_winy // °ì¹Ô¤Î¥Ð¥¤¥È¿ô¤ò4¤ÎÇÜ¿ô¤ËÀßÄê( ɬ¤ºÉ¬Í× ) if sx1 & 3 : sx1 = sx1 & 0x0ffffffc | 4 // VRAM¤Î¥µ¥¤¥º VramSize = sx1 * sy1 * RGB gsel mref VRAM0,66 sx0 = ginfo_winx sy0 = ginfo_winy if sx0 & 3 : sx0 = sx0 & 0x0ffffffc | 4 x = 0 y = 0 gosub *Draw x = 320 y = 240 gosub *Draw redraw 1 stop *Draw // ¥³¥Ô¡¼¤ò»Ï¤á¤ëºÂɸ(x,y+sy1)¤Î¥¢¥É¥ì¥¹ r = ( (sy0 - y - sy1) * sx0 + x ) * RGB // ¥³¥Ô¡¼Àè¤Î °ì¹Ô¤Î¥Ð¥¤¥È¥µ¥¤¥º xb0 = sx0 * RGB // ¥³¥Ô¡¼¸µ¤Î °ì¹Ô¤Î¥Ð¥¤¥È¥µ¥¤¥º xb1 = sx1 * RGB repeat VramSize / 4; ¢« VRAM¤Î¥µ¥¤¥º¤Ïɬ¤º 4 ¤Ç³ä¤êÀÚ¤ì¤ë a = cnt * 4 c = a\xb1 + (a/xb1*xb0) lpoke VRAM0, r + c, lpeek( VRAM1,cnt*4 ) loop return
¡¡¢¬¤Ï¡¢Ã±¤Ë lpeek ¤ò»ÈÍѤ·¤Æ¤ß¤ë¥µ¥ó¥×¥ë¤Ç¡¢HSP¤Î¾¤Î¥¹¥¯¥ê¥×¥È¤Ø¤Î
ÈÆÍÑÀ­¤Ï¤Þ¤Ã¤¿¤¯¤¢¤ê¤Þ¤»¤ó¡£


>(ginfo_winy-1-y)
>¤Ïʬ¤«¤ë¤Î¤Ç¤¹¤¬¡¢¤½¤Î¸å¤Î
>*ginfo_winx+x
>¤Î°ÕÌ£¤¬Îɤ¯Ê¬¤«¤é¤Ê¤¤¤ó¤Ç¤¹¡Ä
¡¡¢¬¤Ï¡¢¤è¤¯RPG¤Î¥Þ¥Ã¥×½èÍý¤ÇÌܤˤ¹¤ë¤È»×¤¤¤Þ¤¹¡£

¡¡¤È¤ê¤¢¤¨¤º¡¡(ginfo_winy-1-y) = Y' ¤È¤ª¤¤¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¤¹¤ë¤È (Y'*ginfo_winx+x) ¤È¤Ê¤ê¤Þ¤¹¡£
ginfo_winx ¤Ï¥¹¥¯¥ê¡¼¥ó¤Î°ì¹Ôʬ¤Î¥Ð¥¤¥È¥µ¥¤¥º¤È¹Í¤¨¤é¤ì¤ë¤Î¤Ç¡£

{ Y' * (°ì¹Ôʬ¤Î¥Ð¥¤¥È¥µ¥¤¥º) } + x ¤Ä¤Þ¤ê¡¢

Y'=0 ¤Ê¤é¡¢0¹ÔÌÜ + x
Y'=1 ¤Ê¤é¡¢1¹ÔÌÜ + x
Y'=n ¤Ê¤é¡¢n¹ÔÌÜ + x

¡¡¤Ä¤Þ¤ê
¡¡Y'*(°ì¹Ôʬ¤Î¥Ð¥¤¥È¥µ¥¤¥º) ¤Ï Âèn¹ÔÌܤΥХ¤¥È¥µ¥¤¥º¤ò¤¢¤é¤ï¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¡£

(ginfo_winy-1-y) = Y'¡¡¤Î(ginfo_winy-1-y)¤Ï¡¢VRAM¤¬¡¢¥¹¥¯¥ê¡¼¥ó¤Î
º¸²¼¤¬¡¢0byte¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤é¤³¤Î¤è¤¦¤Ê·Á¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤¿¤À¤·¡¢HSP¤Ë´·¤ì¿Æ¤·¤ó¤Ç¤¤¤ë¿Í¤Ï¡¢
¡¡Y' = (ginfo_winy-1-y) ¤Ç¤Ï¤Ê¤¯
¡¡Y' = (ginfo_winy-y) ¤ò»È¤Ã¤¿¤Û¤¦¤¬¤è¤¤¤È»×¤¤¤Þ¤¹¤è¡£



Drip

¥ê¥ó¥¯

2006/8/1(Tue) 22:17:03|NO.1709

Drip¤Ç¤¹¡£

¡¡¤³¤ó¤Ë¤Á¤Ï¡£
p=((ginfo_winy-1-y)*ginfo_winx+x)*3
¤Î°ÕÌ£¤¬¤ï¤«¤ê¤Ë¤¯¤¤¤È¤Î¤³¤È¤Ç¤¹¤¬¡¢Î㤨¤Ð+x¤ò¾Ã¤¹¤È¾ï¤Ë½èÍý¤µ¤ì¤ëXºÂɸ¤Ï0¤Ë¤Ê¤ê¤Þ¤¹¡£
¡Ö+x¡×¤¬¤Ê¤¤¤ÈXºÂɸ¤Ï¾ï¤Ë0¤Ç¤¹¡£

¡Ö*ginfo_winx¡×¤Ë¤Ä¤¤¤Æ¤Ï¡¢¤³¤ì¤¬¤Ê¤¤¤ÈyºÂɸ¤Î·×»»¤¬´°·ë¤·¤Þ¤»¤ó¡£
²¼Êý¸þ¤Ë£±¤º¤ì¤ë¤È¡¢¥Ç¡¼¥¿¤Ïginfo_winx*3¥Ð¥¤¥È¤º¤ì¤ë¤«¤é¤Ç¤¹¡£¡Ê*3¤Ï¼°¤ÎºÇ¸å¤Ç¤Þ¤È¤á¤Æ¤«¤±¤Þ¤¹¡£¡Ë
¤ï¤«¤ê¤Ë¤¯¤¤¿ô¼°¤Ï¤¹¤°¤ËºÃÀÞ¤»¤ºÇ´¤ê¶¯¤¯¿µ½Å¤ËÄ´¤Ù¤Æ¤ß¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£



¤Þ¤¹

¥ê¥ó¥¯

2006/8/1(Tue) 22:27:53|NO.1710

>Shinya¤µ¤ó¡¢Drip¤µ¤ó
¤´ÀâÌÀ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¤ä¤Ã¤È¼°¤Î°ÕÌ£¤¬Ê¬¤«¤ê¤Þ¤·¤¿¡£

lpeek¤ò»È¤¦°ÕÌ£¤â¡¢Ê¬¤«¤ê¤Þ¤·¤¿¡£
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¤â¤¦¾¯¤·¤¬¤ó¤Ð¤Ã¤Æ¤ß¤Þ¤¹¡£



Shinya

¥ê¥ó¥¯

2006/8/1(Tue) 22:34:43|NO.1711

´Ö°ã¤¨¤Þ¤·¤¿¡£
NO.1708¤Î
>ginfo_winx ¤Ï¥¹¥¯¥ê¡¼¥ó¤Î°ì¹Ôʬ¤Î¥Ð¥¤¥È¥µ¥¤¥º¤È¹Í¤¨¤é¤ì¤ë¤Î¤Ç¡£
¤Îginfo_winx¤Ï°ì¹Ôʬ¤Î¥Ð¥¤¥È¥µ¥¤¥º¤È¤Ï¹Í¤¨¤é¤ì¤Þ¤»¤ó¡£Ã±¤Ê¤ë¡¢¥¹¥¯¥ê¡¼¥ó¥µ¥¤¥º¤Ç¤·¤¿¡£
¡¡°ÕÌ£ÉÔÌÀ¤Ê¡¢²óÅú¤ò¤·¤Æ¤¹¤ß¤Þ¤»¤ó¡£Ãí°Õ¤·¤Þ¤¹¡£



Shinya

¥ê¥ó¥¯

2006/8/2(Wed) 05:31:41|NO.1721

´Ö°ã¤¨¤Þ¤·¤¿¡£
NO.1708¤Î
>Y' = (ginfo_winy-1-y) ¤Ç¤Ï¤Ê¤¯
>Y' = (ginfo_winy-y) ¤ò»È¤Ã¤¿¤Û¤¦¤¬¤è¤¤¤È»×¤¤¤Þ¤¹¤è¡£
¤Ï¡¢NO.1708¤Î¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥ÈÆâ¤À¤±¤ÎÏäǤ¹¡£

¡¡¤Ü¤±¤Ü¤±¤Ê¡¢²óÅú¤ò¤·¤Æ¤É¤¦¤â¤¹¤ß¤Þ¤»¤ó¤Ç¤·¤¿¡£



Shinya

¥ê¥ó¥¯

2006/8/12(Sat) 10:35:27|NO.1977

NO.1708¤Î¥µ¥ó¥×¥ë¤¬´Ö°ã¤Ã¤Æ¤¤¤¿¤Î¤Ç¡¢½¤Àµ¤·¤¿¤â¤Î¤òºÜ¤»¤Æ¤ª¤­¤Þ¤¹¡£
#define	RGB 3
; ¢­¤¢¤¨¤Æ 4 ¤ÎÇÜ¿ô¤Ë¤·¤Ê¤¤ buffer 1,319,240 : picload dir_exe + "/docs/cg.gif",1 mref VRAM1,66 sx1 = ginfo_winx * RGB sy1 = ginfo_winy dsize = sx1 /* if sx1 & 3 : sx1 = (sx1 & 0x0ffffffc) + 4 */ dsize = sx1 - dsize ; ¢«¥À¥ß¡¼¤Î¥µ¥¤¥º VramSize = sx1 * sy1; ¢«VRAM ¤Î¥µ¥¤¥º gsel mref VRAM0,66 sx0 = ginfo_winx : tmp = sx0 * RGB sy0 = ginfo_winy if tmp & 3 : tmp = (tmp & 0x0ffffffc) + 4 x = 0 : y = 0 gosub *Draw x = 320 : y = 240 gosub *Draw redraw 1 stop *Draw r = (sy0 - y - sy1) * tmp + x * RGB repeat VramSize / 4 a = cnt * 4 b = a\sx1 + (a/sx1*tmp) /* c = (a\sx1>dsize)*dsize ; ¢« ¥À¥ß¡¼¤òÉÁ²è¤·¤Ê¤¤¤¿¤á¤ÎÃÍ */ lpoke VRAM0, r + b, lpeek( VRAM1,cnt*4 - c ) loop return
¡¡¥À¥ß¡¼¤ÎÄɲýèÍý¤ò¹Ô¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¡¢²èÁü¤¬¼Ð¤á¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
¥È¥°¥ë¥³¥á¥ó¥È¤òºï½ü¤¹¤ë¤È¤¦¤Þ¤¯É½¼¨¤µ¤ì¤Þ¤¹¡£



ONION software Copyright 1997-2023(c) All rights reserved.