The FADE IN
command is a fundamental tool for creating smooth visual
transitions, allowing you to gradually modulate the visibility of elements.
This command, in its basic form FADE IN
, triggers a fade-in. If an element
was previously invisible or partially transparent, this command will gradually
make it more opaque until it reaches its full visibility.
Again, the speed of the transition is usually governed by preset parameters.
An interesting variant of the FADE IN
command appears in the syntax
FADE IN
palette, which finds application in scenarios where color management
is done via palettes, typically in low-resolution graphic contexts or with a
limited number of available colors. Instead of acting on opacity, this command
initiates a gradual transition between an initial color palette and the specified
palette, making the image emerge through a progressive transformation of its colors.
It is possible to combine this palette-based fade with a specific time duration
using the syntax PERIOD time
, where time defines the time frame within which
the color transition from the initial palette to the desired one must be
completed. Finally, for direct control over the duration of the opacity-based
fade-in, the form FADE IN PERIOD time
is used.
In this syntax, the time parameter specifies the duration of the animation,
determining the speed at which the element transitions from invisibility (or
partial transparency) to full visibility.
Using these different forms command allows you to precisely orchestrate
visual transition effects, contributing significantly to the quality and
fluidity of the user experience in interactive applications.
FADE IN [palette] [PERIOD time]
FADE IN FADE IN PERIOD 10
Join BASIC 10Liner Contest with ugBASIC!
An interesting competition is held at the beginning of each year: the
BASIC 10Liner Contest.
It is possible to use ugBASIC to participate in the next
"BASIC10Liner" competition, in the following categories:
FADE IN ↔ FAdIn
If you have found a problem with this keyword, if you think there is a bug or, more
simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!
open an issue
BACK TO KEYWORDS