CALL FO
This page was last modified 14:06, 17 May 2020 by Mars2000you.

Contents

Effect

Makes a fade out effect on a text or graphic screen, by using the MSX2 color palette feature. It can be used in all screen modes except SCREEN 8, 11 and 12.

In screens 0 and 1, it will work only if a graphic screen has been used before switching to screen 0 or 1.

Syntax

CALL FO (<StepParameter>, <EffectSpeed>)

Parameters

<StepParameter> is an hexadecimal number between &H0 (no step, the effect is direct) and &HFFFF (recommended).

<EffectSpeed> is a decimal number between 1 (very fast) and 255 (very slow); if you use 0, it will be equivalent to 255.

Examples

10 SCREEN 2:COLOR 15,4,4: SCREEN 1
20 BLOAD"MUSIC.OBJ",R
30 _FO(&HFFFF,30)
40 _FI(&HFFFF,30)
50 A$=INPUT$(1)
60 SCREEN 0
10 COLOR 15,4;4:SCREEN 5: SET PAGE 0
20 OPEN"GRP:" AS 1:PRINT#1,"LOADING OF PICTURE..."
30 BLOAD"MUSIC.OBJ",R
40 COPY"IMAGE.SC5" TO (0,0),1:BLOAD"IMAGE.PL5",S:COLOR=RESTORE:SET PAGE 1
50 FOR I=1 TO 1000:NEXT I
60 _FO(&HFFFF,30)
70 FOR I=1 TO 1000:NEXT I
80 _FI(&HFFFF,30)
90 A$=INPUT$(1)
100 SCREEN 0

Related to

CALL FI

Compatibility

CompileBGM BASIC (only some versions of this extension)