Function FadeIn

From Uzebox Wiki
Jump to: navigation, search
Prototype

void FadeIn(unsigned char speed, bool blocking);

Description

Fades in the screen from black to full colors.

Parameters
  • speed: The delay in frames between each fade step.
  • blocking: If true, the call block until the fade is completed. Otherwise, it returns immediately and fade steps will be performed automatically during each VSYNC.
Returns

Void

Video Modes

All

Since

V4

Notes

Fading is using bit masking on the video port's data direction register and is based on a 9 step pre-calculated table.

Example:

FadeIn(4, true); //fade in & wait till fade completes