Once you have chosen the number of columns you want to use, you can have your program do the calculations for you with the following format:

CHR$(27)"L"CHR$(N MOD 256)CHR$(INT(N/256));

N is the total number of columns you want to specify. The MOD (modulus) function calculates the value for nl, and the INT (integer) function calculates the value for n2. For programming languages other than BASIC, consult your manual for the proper form for these functions.

This format can be used with any graphics density and with any value of N up to the maximum number of columns per line for that density.

Designing Your Own Graphics

This section takes you through the development of a graphics pro- gram. The example is not especially complicated, but it does include the same steps you would use for a more complex figure so that you have the basis for designing graphics on your LX-90.

You should plan your figure with dots on graph paper, but before beginning to place the dots, you must decide which graphics density you want. Figure 8-3 shows the differences among the three most-used graphics modes so that you can choose the one you want.

Figure 8-3. Designing in different densities

In this figure you can see the main rules for graphic design in the three densities. In single density no dots can be placed on vertical lines. In high-speed double density dots can be placed on vertical

62