Table of Contents

ugBASIC User Manual

RASTER LINE

SYNTAX

   = RASTER LINE

PURPOSE

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.

EXAMPLE

  randomScore = RASTER LINE

ABBREVIATION

 RstLn

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY