User Tools

Site Tools


ugbasic:user:kw:defdgr
Translations of this page:


ugBASIC User Manual

DEFDGR ✓

SYNTAX

   DEFDGR[$](x) = b0, b1, ... , b7

PURPOSE

This command allows you to customize a single character from those used in graphical mode. The character is defined by means of an 8 pixel by 8 pixel monochrome matrix.

If the system font has fewer pixels along one or both directions, the character will be aligned to the top left and the extra pixels will be ignored. The customization of the character occurs at runtime.

If you want to customize the characters used in text mode, or during compilation, you must use the LOAD FONT command.

EXAMPLE

  DEFDGR(0) = $ff, $ff, $ff, $ff, $00, $00, $00, $00
  DEFDGR$(1) = $ff, $ff, $ff, $ff, $00, $00, $00, $00

See also the following example files:

ABBREVIATION

 Dfg

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