¿§¤ÎÊѲ½¶ñ¹ç¤òÀµ³Î¤Ë·¤¨¤Þ¤·¤¿¡£
Æú¿§¤Î½é´ü¤Î¿§¤ò255,0,0¤Ë¤·¤Þ¤·¤¿¡£
;RainBow.as Æú¿§¤ò»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹ made by kuro(ver.1.0)
/*|---------------------------------------------------------------------------------------------|
| |
| ¡ RainBowReset ---ºÇ½é¤Ë»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤ |
| |
| |
| ¢ Raibow p1 |
| |
| p1 = Æú¿§¤ÎÊѲ½¤Î®¤µ¤òp1Çܤˤ·¤Þ¤¹ |
| |
| p1¤ÎÃͤ¬Â礤¹¤®¤ë¤ÈÆú¿§¤Ë¤Ê¤é¤Ê¤¤¤Î¤ÇÄ´À°¤·¤Æ¤¯¤À¤µ¤¤ |
| |
| £ Æú¿§¤Î¡ÖR¡×,¡ÖG¡×,¡ÖB¡×¤ÎÃͤϤ½¤ì¤¾¤ì¡¢¡ÖR@rb¡×,¡ÖG@rb¡×,¡ÖB@rb¡×¤Ç¼èÆÀ¤Ç¤¤Þ¤¹ |
| |
|---------------------------------------------------------------------------------------------|*/
#module rb
#deffunc RainBowReset ;ºÇ½é¤ËRaibowResetÌ¿Îá¤ò¤·¤Æ¤¯¤À¤µ¤¤
R=255 : G=0 : B=0
Red=1
Orange=0
Yellow=0
¡¡ Green=0
LightBlue=0
Blue=0
Purple=0
Return
;=============================================
#deffunc RainBow double Change_rate ;ÊѲ½¤Î®¤µ(Ä´À°²Ä)
R=double(R)
G=double(G)
B=double(B)
;-------------------------------------------------------------------;
IF Red=1 {
R=R+127.0/128*Change_rate
G=0
B=B-1.0*Change_rate
} ;ÀÖ 255,0,0
IF (Red=1)&(R>=255)&(B<=0) : R=255 : B=0 : Orange=1 : Red=0 : Return
;-------------------------------------------------------------------;
IF Orange=1 {
R=255
G=G+165.0/128*Change_rate
B=0
} ;Üô 255,165,0
IF (Orange=1)&(G>=165) : G=165 : Orange=0 : Yellow=1 : Return
;-------------------------------------------------------------------;
IF Yellow=1 {
R=255
G=G+90.0/128*Change_rate
B=0
} ;²« 255,255,0
IF (Yellow=1)&(G>=255) : G=255 : Yellow=0 : Green=1 : Return
;-------------------------------------------------------------------;
¡¡ IF Green=1 {
R=R-255.0/128*Change_rate
G=G-105.0/128*Change_rate
B=0
} ;ÎÐ 0,150,0
IF (Green=1)&(R<=0) : R=0
IF (Green=1)&(G<=150) : G=150
IF (Green=1)&(R=0)&(G=150) : Green=0 : LightBlue=1 : Return
;-------------------------------------------------------------------;
IF LightBlue=1 {
R=0
G=G+105.0/128*Change_rate
B=B+255.0/128*Change_rate
} ;¿å 0,255,255
IF (LightBlue=1)&(G>=255) : G=255
IF (LightBlue=1)&(B>=255) : B=255
IF (LightBlue=1)&(G=255)&(B=255) :LightBlue=0 : Blue=1 : Return
;-------------------------------------------------------------------;
IF Blue=1 {
R=0
G=G-255.0/128*Change_rate
B=255
} ;ÀÄ 0,0,255
IF (Blue=1)&(G<=0) : G=0
IF (Blue=1)&(B>=255) : B=255
IF (Blue=1)&(G=0)&(B=255) :Blue=0 : Purple=1 : Return
;-------------------------------------------------------------------;
IF Purple=1 {
R=R+1.0*Change_rate
G=0
B=B-1.0*Change_rate
} ;ȍ 128,0,128
IF (Purple=1)&(R>=128) : R=128
IF (Purple=1)&(B<=128) : B=128
IF (Purple=1)&(R=128)&(B=128) : Purple=0 : Red=1 : Return
;-------------------------------------------------------------------;
Return
;=============================================
#global