★ APPLICATIONS ★ DIVERS ★ FANCY TEXT GENERATOR|Amstrad Action) ★ |
Fancy Text Generator | Applications Divers |
Not wishing to be left in the cold, Richard Turner has decided to send in his own text-printing routine. It works in modes 0 and 1. Character position, character width and character height can all be defined, making it very easy to print text in a multitude of shapes and sizes. The listing below includes a short demo (starting at line 190) which can be omitted. However, I recommend typing it in as the results are rather rewarding. The word or sentence you want printed in fancy text must be located at the bottom left comer of the screen. The Call then transfers it to the given coordinates. To avoid text showing at the bottom of the screen, it is best to print it with PEN set to the current background colour. To produce the text the routine must be given a few parameters: CALL 40000, x, y, len*a, xstep, ystepwhere x and y are the coordinates (0-639 by 0-399); len*a is the length of the word or sentence multiplied by 16 for mode 1 or 32 for mode 0; xstep is the character width; and ystep is character height. You must be careful that XOR mode is off, that xstep and ystep are never zero, and that len is never greater than 15.
|