#module
#deffunc decmes str, int, int, int, int, int, int
mref msg, 32 : mref x, 1 : mref y, 2 : mref rep, 3 : mref r, 4 : mref g, 5 : mref b, 6
mref bmscr, 67
cr = bmscr.40 & 255 // カレントカラー赤輝度
cg = bmscr.40 >> 8 & 255 // カレントカラー青輝度
cb = bmscr.40 >> 16 & 255 // カレントカラー緑輝度
// 1回以上繰り返す場合
if rep > 0 {
if r >= 0 & (g>= 0) & (b >= 0) : color r, g, b
// 影(3D)文字
if x | y {
repeat rep
csrxt = csrx : csryt = csry
pos csrx, csry : mes msg
pos csrxt + x, csryt + y
loop
// 袋文字
} else {
csrxt = csrx : csryt = csry
repeat (rep * 2 + 1) * (rep * 2 + 1)
pos cnt \ (rep * 2 + 1) + csrxt, cnt / (rep * 2 + 1) + csryt : mes msg
loop
pos rep + csrxt, rep + csryt
}
}
color cr, cg, cb
pos csrx, csry : mes msg
return
#global
font "MS 明朝", 64, 1
redraw 0
color 255
pos 150, 50 : decmes "てすと。", 2, 1, 5, 150, 50, 50
color ,255
pos 300, 160 : decmes "袋文字列!", , , 2, , 100
color , 100, 255
pos 80, 350 : decmes "ちょ〜浮出しぃ", 1, -2, 30, 50, 50, 100
redraw 1
stop
|