CODINGLISTINGS ★ FANDANGO (COMPUTING WITH THE AMSTRAD) ★

Fandango (Computing with the Amstrad)Coding Listings
★ 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 ★ 

WHILE were waiting for you to respond in your thousands to this new feature, we've let the Features Editor loose on his Amstrad and he's come up with some pleasing graphics demonstrations -actually that's all he's capable of.

In the first, each screen display lasts for 30 seconds, but you can interrupt this at any time by pressing the spacebar and starting again.

You can vary the length of this display by changing the variable xx in line 10 which corresponds to the number of seconds.

If you want to see a more colourful but chunky pattern, replace the MODE 1 in line 10 with MODE 0, and alter the 3 in line 50 to 15, or 12 if you don't like the flashing colours.

His final offering is a routine to provide either filled or outlined circles. The actual circle routine is based on one of Bresenham's algorithms (his line was used in Roland's PCW graphics article in May), and is contained in three subroutines that you can easily incorporate into your own programs.

Lines 40 and 50 make up the first subroutine and calculate the points on the circle's circumference. Lines 60 and 70 are the other two and create either a filled or an outlined circle dependent on your input.

You must pass five parameters (xx,yy,r,c,a) to the subroutines and these dictate in sequence the x,y coordinates, radius, colour and type of circle.

Included in the 10 lines are four separate demonstrations - two of them in line 10. In the first, the x,y coordinates and type of circle remain the same while the radius and ink numbers decrease. In the second all the parameters are generated by random numbers.

The third and fourth are little surprises to show you just what you can achieve with a little imagination and planning. All the circle parameters are read in from data contained in lines 80 - 100.

Now see what you can do!

Whoops!

SORRY folks but a couple of errors crept into last month's routines. The editor's promised not to do any more programming and things should be OK now we're using your entries .

In Fandango the GOSUB in line 30 should be to 110 and the RUN in 100 should be on a line of its own at 110. Even though this breaks the ten-line rule, deleting line 20 will put that right.

In the circles routine the last four numbers were chopped from the end of line 100. The last number shown should be 180 not 18, then add 30,5,1.

CWTA

★ PUBLISHER: Computing With The Amstrad
★ YEAR: 1987
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ COLLECTIONS: COMPUTING WITH THE AMSTRAD 1987 , COMPUTING WITH THE AMSTRAD 1987
★ AUTHOR(S): ???
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listings:
» Fandango    (Computing  with  the  Amstrad)    ENGLISHDATE: 2020-09-14
DL: 167
TYPE: ZIP
SiZE: 4Ko
NOTE: 40 Cyls
.HFE: Χ

» Fandango    (Computing  with  the  Amstrad)    ENGLISH    LISTINGDATE: 2020-08-04
DL: 174
TYPE: PDF
SiZE: 83Ko
NOTE: 2 pages/PDFlib v1.6

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

Lien(s):
» Coding Src's » Curve
» Coding Src's » Aplausos (Amstrad Personal)
» Coding Src's » Schnellerer Graphics-Pen (CPC Amstrad International)
» Coding Src's » Wave Interference (Popular Computing Weekly)
» Coding Src's » Virages et loopings
» Coding Src's » CAD for beginners part 1 (Amstrad Computer User)
Je participe au site:
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop
Page créée en 235 millisecondes et consultée 802 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.