Epson Printer Interface Cartridge for the Apple IIc Manual de usuario Pagina 46

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 116
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 45
Now that you know the principles of Epson graphics, you’re ready
for two simple exercises, more densities, and then something more
complex as a basis for writing your own programs.
First Graphics Program
Your first graphics exercise could be a program that prints a single
column of dots, but it is difficult to see the pattern in a single column of
dots, so your first graphics program prints the same pattern 40 times.
Line 10 is the code for 40 columns of single-density graphics. As
usual, the example is in BASIC, but you can adapt it to the program-
ming language you prefer.
NEW
5
PRINT CHR$(A);"PR#l"
l@ PRINT CHR$(27);"K";CHR$(&);CHR$(0);
388
PRINT CHR$(4);"PR#$Y'
The second line is the data that is printed as pin patterns. Be sure
that you type in the semicolons in both lines:
2a FOR X=1 TO
40:
PRINT CHR$(74);: NEXT X
That’s it. Run the program to see the result below. Although it is not
as interesting as the examples at the beginning of this chapter, it does
allow you to see exactly how the mode works.
44
Vista de pagina 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 115 116

Comentarios a estos manuales

Sin comentarios