I don't seem to be able to do this So I could do with a little help on it if Possible...
circle 100,100,100
Fill(100,100,RGB(0,255,255))
Wait Key
Function Fill(x,y,Color)
` 2D Fill Command
` If No Fill Made Then Return Value = 0
` If Fill Made Then Return Value = 1
BackColor = Point(x,y)
If BackColor = Color Then ExitFunction 0
Ink Color,0
Dot x,y : System_Function_Fill_Part2(x,y,BackColor)
EndFunction 1
Function System_Function_Fill_Part2(x,y,BackColor)
` For Use ONLY With the Fill Command...
` Do NOT Call This Function...
If Point(x-1,y-1) = BackColor Then Dot x-1,y-1 : System_Function_Fill_Part2(x-1,y-1,BackColor)
If Point(x ,y-1) = BackColor Then Dot x ,y-1 : System_Function_Fill_Part2(x ,y-1,BackColor)
If Point(x+1,y-1) = BackColor Then Dot x+1,y-1 : System_Function_Fill_Part2(x+1,y-1,BackColor)
If Point(x-1,y ) = BackColor Then Dot x-1,y : System_Function_Fill_Part2(x-1,y ,BackColor)
If Point(x+1,y ) = BackColor Then Dot x+1,y : System_Function_Fill_Part2(x+1,y ,BackColor)
If Point(x-1,y+1) = BackColor Then Dot x-1,y+1 : System_Function_Fill_Part2(x-1,y+1,BackColor)
If Point(x ,y+1) = BackColor Then Dot x ,y+1 : System_Function_Fill_Part2(x ,y+1,BackColor)
If Point(x+1,y+1) = BackColor Then Dot x+1,y+1 : System_Function_Fill_Part2(x+1,y+1,BackColor)
EndFunction
Edit:
It puts a Dot at x,y and then check the 8 pixels arround it, if update made on any then checks the xy on the new, Ie x+1,y-1, Ect
If that makes any sence to you that is