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

πŸ–₯ Oriental Paintbrush Sim

This is a port and mod of a QBJS program ("Calligraphy Pro 128 Studio:  Oriental paintbrush mode") by Vince. Click/touch the canva...