Graphics Extensions (Your Computer)Applications Divers
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

Andrew Ware with a suite of 13 new graphics commands for the CPC-464.

This program gives you 13 extra graphics commands. The Inverse and Copychar commands arc text-orientated and the others arc graphics orientated. The Stipple command affects both graphics and te. After the Ston command has been used all text is stippled as well as all points plotted, all lines drawn and all shapes filled. When using stippled text no text will be printed when the graphics pen and paper are equal since the graphics Tag mode is used to print the text.

Any stippled text may be fully edited provided that the background colour does not appear within the stipple parameters. The Stoff command will return the text and graphics to their original pen and paper colours. IF the Paint command is used while the stipple effect is on unpredictable patterns will occur due to the order in which points are plotted. To fill a shape with stipple I would advise the use of the Box, Ellipse and Circle commands with the Fill command on.

Any colour parameters used refer to the pen and paper colours currently selected and will respond to mode changes in the same manner as does Amstrad Basic. For example, if the stipple colours are selected by:


then in mode 0 all eight colours will be used, however in mode 1 these colours will appear Mod 4 and the stipple will be equivalent to:


If the incorrect number of parameters for a command have been entered the routine will return to Basic and display an error message.

Type in the data from program 3 followed by program 1. Once program 1 has been run the code can be saved by:

SAVE"CALL 38155",B,37985,2220

To load this data type:

MEMORY 37985: LOAD"CALL 38155"

and to use the new commands type:

CALL 38155

Remember that if you wish to use the Symbol After command it must be used before the Memory command.

  • |BOX,x co-ordinate,y co-ordinate,width, height [,ink].
    This command responds to FILL. With |FILL,0 an outline of the box is drawn and with |FILL,1 the box is filled.

  • |CIRCLE,x co-ordinate,y co-ordinate,radius [,ink].
    Circle responds to FILL. With |FILL,0 the circumference only is drawn and with |FILL,1 the circle is filled.

  • |COPYCHAR, column, row, @variable%.
    Returns the CHR$ value of the character at the given row and column position into the integer variable following the character.

  • |ELLIPSE,x co-ordinate,y co-ordinate,width, height [,ink].
    Ellipse responds to FILL in the same manner as circle.

  • |FILL,integer.
    |FILL,0 turns fill off.
    |FILL, 1 turns fill on.
    FILL responds to the stipple command.

  • |GPAPER,graphics paper colour.
    The background graphics paper is set to the colour specified.

  • |GPEN,graphics pen colour.
    The foreground graphics pen is set to the colour specified.

  • |INVERSE,integer.
    |INVERSE,0 turns the inverse mode off and text is printed in the current pen colour on the current paper colour.
    |INVERSE, 1 turns the inverse mode on and text is printed in current paper colour on the current pen colour.

Paint responds to stipple

  • |MASK,integer.
    Sets ink mask:
    |MASK,0 Force mode. Pixel plotted over background.
    |MASK,1 XOR mode. Pixel XORed with background pixel. |MASK,2 AND mode. Pixel ANDed with background pixel. |MASK,3 OR mode. Pixel ORed with background pixel.

  • |PAINT,x co-ordinate,y co-ordinate[,ink].
    Paints an enclosed area of the graphics window around the point x,y. This command can be terminated by pressing Ctrl and C keys together. Paint responds to stripple, however the results are unpredictable.

  • |STIPPLE,pen 1,pen 2,pen 3,pen 4,pen 5,pen 6,pen 7,pen 8.
    Sets the order of pixel colour While stipple is activated the current graphics pen colour is ignored. Text will be printed in current stipple colours.

  • |STOFF.
    Turns stipple off.

  • |STON.
    Turns stipple on.

Terms in brackets arc optional and all coordinates are relative to the current graphics origin.


★ YEAR: 1985
★ TAG: /RSX/
★ AUTHOR: Andrew Ware


» RSX-Graphics  Extensions    (Your  Computer)    ENGLISHDATE: 2020-04-22
DL: 19 fois
NOTE: Uploaded by CPCLOV ; 40 Cyls

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...


CPCrulez[Content Management System] v8.7-desktop/cache
Page créée en 146 millisecondes et consultée 879 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.