Thursday, April 27, 2023

πŸ†• _GETCHR$ to get a string representation of the 8x8 pixels for the character assigned to an ascii code

 The _GETCHR$ function does the reverse of the recently added _LETCHR$ statement.

Checkout a sample application:


The _GETCHR$ statement returns the string representation of the 8x8 pixel definition for a character that matches the specified ascii code.

Syntax

_GETCHR$( ASCII_code%)

  • return value: a 64-character string representing 8x8 pixels
    • an "X" represents an "on" pixel
    • a "." represents an "off" pixel

  • ASCII_code%
    • An integer number that represents an ASCII character.
    • As simple as a literal number, a constant/variable number, or a numeric expression of any complexity.
  • characterTemplate$

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...