The Amstrad, though having some very nice graphics commands, lacks a Circle command. These general subroutines provide such a facility in a flexible manner. The first routine draws a circle in outline and the second a solid circle. The routines work by using the familiar parametric equation of a circle. This however gives an ellipse due to the CRT in the monitor. The vertical coords have been adjusted to give a circle in these routines. An attempt has also been made to speed them up by only calculating the sines and cosines of 0-90 degrees and making use of the symmetry of the circle. The parameters to be set before calling the routines are: - radius: radius of circle
- cx,cy: x and y coords of circle
- usepen: pen to be used
PopularComputingWeekly
★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.732-desktop/c Page créée en 023 millisecondes et consultée 39 foisL'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. |
|
|