Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 118 - 2505_CoreGPT(Podar)_Flipbook_C7
P. 118

    Program 6: To display a message HELLO FRIENDS using the TEXT statement.

                      By using the TEXT command, you can add labels, instructions or other text-based information
                      directly in your graphics window.

                            STATEMENTS IN BASIC-256

                      BASIC-256 offers several drawing statements that allow you to create shapes and graphics in the
                      window. Let’s explore the most important drawing statements with examples.

                      Font Statement

                      The SET FONT statement is used to change the font type and size for text displayed on the screen
                      or printed text.

                      Syntax:

                      SET FONT "fontname", size
                          ✶  fontname: The name of the font to be used. Examples include "Arial", "Courier", "Times New
                           Roman", etc.

                          ✶  size: An integer specifying the font size in pixels. For example, 12 for a smaller font or 24 for
                           a larger one.

                    116     Premium Edition-VII

| 113 114 115 116 117 118 119 120 121 122 123 |