Talk:SmileBASIC (Petit Computer 3)/@comment-15296152-20141015165223

Don't know about anyone else, but I've been thinking of ways to do things with SmileBASIC, based on the information we've been given, but if you've thought of anything, then let's share. Here's one of my ideas.

Screen Fading to any color you want

(Set-up)

- Make a sprite.

- Assign it a graphic area that is completely white (can be 1 pixel big?).

- Scale and position it so it stretches across the entire screen (we'll assume it can scale by 400 horizontally and 240 vertically with the graphic being 1 pixel big. If 16x16, then scale by (25,15)).

- Set its depth so it will be above everything else.

- Set the sprite's SPCOLOR to ARGB(0,0,0,0) (or anything as long as the alpha is 0).

(Using)

- Set the sprite's alpha of SPCOLOR slowly in one direction to do fade-outs and fade-ins.

- Fade out goes from alpha 0 to alpha 255. Fade in goes from alpha 255 to 0.

- Not limited to black. You can have it fade to/from white, red, brown, etc.

- You can even have it start a fade of a specific color, and then change the color as it fades (like start for a fade to black, but mid-way, have the fade slowly change to white).