Sunday, January 1, 2023

🆕 PLOT and UNPLOT

PLOT is an alternative keyword for PSET, and UNPLOT is an alternative keyword for PRESET.

The syntax for PLOT is the same as the syntax for PSET, and the syntax for UNPLOT is the same as the syntax for PRESET.


PSET

Description:

The PSET graphics SCREEN statement sets a pixel at a specified coordinate to a specified color attribute, or the current foreground color if a color attribute is not specified. When the STEP keyword is included, then PSET sets a pixel at a coordinate that is relative to the most recently referenced point.

PSET (column%, row%)[, colorAttribute]
PSET STEP (column%, row%)[, colorAttribute]

  • For those who prefer, the "PLOT" keyword can be used as a substitute for PSET. However, the syntax remains the same.


PRESET

Description:

The PRESET graphics SCREEN statement sets a pixel at a specified coordinate to a specified color attribute, or the current background color if a color attribute is not specified. When the STEP keyword is included, then PRESET sets a pixel at a coordinate that is relative to the most recently referenced point.

PRESET (column%, row%)[, colorAttribute]
PRESET STEP (column%, row%)[, colorAttribute]

  • For those who prefer, the "UNPLOT" keyword can be used as a substitute for PRESET. However, the syntax remains the same.

No comments:

Post a Comment

🖥 Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...