The RASTER LINE
keyword gives the current raster line, or the
current vertical position of a raster beam. A raster beam is a beam
of electrons or light that systematically scans an area, moving from
left to right and top to bottom, like the lines that form an image
on a cathode ray tube or CRT television. This movement creates a grid
of points of light, called pixels, that together form the complete image.
Imagine painting a picture with a brush. The brush moves from left to
right and then down a line, repeating this movement until the entire
surface is covered. The brush in this case represents the raster beam.
The raster line indicates the vertical position of the raster beam
at any given time. The values range of this position varies on the various
targets, and if a PAL or NTSC system is in use.
Having access to the the raster line can help optimize rendering,
animation, and image processing algorithms. If you experience display
problems, such as distorted lines or flickering images, analyzing
raster lines can help pinpoint the cause. Many applications, such
as video games and 3D graphics software, require precise control
of the raster beam to create complex visual effects.
= RASTER LINE
randomScore = RASTER LINE
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:
RASTER LINE ↔ RstLn
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