APPLICATIONSPROGRAMMATION ★ CPC464 FILL SUBROUTINE (AUSTRALIAN PERSONAL COMPUTER) ★

CPC464 Fill Subroutine (Australian Personal Computer)Applications Programmation
★ 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 ★ 

This fill subroutine will fill any shape, including ones with holes and dangling lines. It can fill with any colour, and will work on shapes with multicoloured outlines. It also works in all three screen modes with only minor modification.

It works by looking for the largest block in the shape. While filling it, it detects spaces around this block which need to be filled, and pushes these onto a stack.

When the block is filled, the stack is popped and the next block is filled, following the same process. This continues until the stack is empty.

To use the utility, enter seed coordinates (starting point to fill from) as xseed% and yseed%, background colour as bacol%, and fill colour as incol%, and then GOSUB the line where the subroutine starts.

The program consists of three parts. The first is an example of filling a shape with a multi-coloured outline; the second is a routine to generate random shapes and fill them — this part can be stopped by pressing ESC twice; and the third part is the routine itself (2.5k long).

Australian Personal Computer

★ PUBLISHER: Australian Personal Computer
★ YEAR: 1986
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ AUTHOR: Rudi Way
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» CPC464  Fill  Subroutine    (Australian  Personal  Computer)    LISTING    ENGLISHDATE: 2018-09-23
DL: 240
TYPE: PDF
SiZE: 257Ko
NOTE: 3 pages/PDFlib v1.6

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

Lien(s):
» Applications » Turbo Lader Science
» Applications » Introducing Pascal
» Applications » Symbol Poker (Compute Mit)
» Applications » MC-Relocator (Schneider Magazin)
» Applications » Nightingale Software - Amsmon
» Applications » Tracer (Detlef Gunkel)
Je participe au site:
» Pour ce titre nous ne disposons de fichier executable sur CPC (Dump, Saisie du listing) , alors si vous avez ça dans vos cartons ou vous désirez usé vos petit doigts boudinés sur votre clavier faites le nous savoir.
» 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/c
Page créée en 389 millisecondes et consultée 1069 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.