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 ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.7-desktop/c Page créée en 389 millisecondes et consultée 1069 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. |
|
|