CPCWiki forum

General Category => Technical Support - Software related => Topic started by: simon christo on 08:03, 25 May 24

Title: CPC 6128 PAINT COMMAND
Post by: simon christo on 08:03, 25 May 24
Hi there, this is my first Post....
What is the relationship with GRAPHICS PEN, GRAPHICS PAPER & FILL
I've been pottering around with it, and all I've gathered, is that the outline is GRAPHICS PEN.
I'm perplexed, to know if I can Paint over an already Painted object - even if it's only part of it.
Thanks to all, Simon.
Title: Re: CPC 6128 PAINT COMMAND
Post by: McArti0 on 08:50, 25 May 24
Hi.
Look to manual

https://www.cpcwiki.eu/manuals/AmstradCPC6128-hypertext-en-Sinewalker.pdf

page 147 of pdf

FILL 
10 MODE 0 
20 FOR n=1 TO 500 
30 PRINT "0"; 
40 NEXT 
50 pencolour=2+RND*13 
60 FILL pencolour 
70 GOTO 50
 run 

COMMAND: Fills an arbitrary area of the graphics screen. The edges of the area are bounded by lines drawn either in the current graphics pen ink or in the ink being used to fill (in the range 0 to 15). The fill starts from the current graphics cursor position, If this position lies on an edge, nothing will be filled. 
Associated keywords: GRAPHICS PEN

So you paint from not GRAPHICS PEN to GRAPHICS PEN edge.
Title: Re: CPC 6128 PAINT COMMAND
Post by: simon christo on 13:54, 25 May 24
Thanks, for that information.Simon.
Powered by SMFPacks Menu Editor Mod