i have created an awesome paint program and i want to know if there is some script i can use to make it so i can fill in one spot if its in between 2 lines. here is my code:
`======paint program======
`=========================
`---Author: ME!----
`=========================
`Main Source File
`setup
sync on
sync rate 100
size=5
DrawColour as Dword
Rem Project: Paint Program
Rem Created: 2/2/2005 8:07:04 PM
Rem ***** Main Source File *****
`Set backroud color
color backdrop 0,500
`Font
SET TEXT FONT "Arial"
`Start The Loop
do
`Create line for around template
ink rgb (200,0,0),0
LINE 160,0,0,1000000
`Create Color Template
ink rgb (255,255,255),0
text 0,0, "1 = White"
ink rgb (200,0,0),0
text 0,15, "2 = Red"
ink rgb (0,200,0),0
text 0,30,"3 = Green"
ink rgb (0,0,255),0
text 0,45, "4 = Blue"
ink rgb (200,200,0),0
text 0,60, "5 = Yellow"
ink rgb (250,125,0),0
text 0,75, "6 = Orange"
ink rgb (128,64,0),0
text 0,90, "7 = Brown"
ink rgb (255,128,255),0
text 0,105, "8 = Pink"
ink rgb (125,0,125),0
text 0,120, "9 = Purple"
ink rgb (200,0,0),0
text 0,135, "________________________________"
text 0,150, "Use left mouse button to draw"
text 0,165, "a square."
text 0,180, "________________________________"
text 0,195, "Use right mouse button to draw"
text 0,210, "a circle."
text 0,225, "________________________________"
text 0,240, "Hold down shift to erase"
text 0,255, "________________________________"
text 0,270, "Press the Right-control key to clear"
text 0,285, "the whole work area"
text 0,300, "________________________________"
text 0,315, "Hold down the space-bar to get"
text 0,330, "an awesome 3d wall affect!"
text 0,345, "________________________________"
`Start Button clicking/keystates
if mouseclick()=2
ink DrawColour,0
circle mousex(),mousey(),3
circle mousex(),mousey(),2.9
circle mousex(),mousey(),2.8
circle mousex(),mousey(),2.7
circle mousex(),mousey(),2.6
circle mousex(),mousey(),2.5
circle mousex(),mousey(),2.4
circle mousex(),mousey(),2.3
circle mousex(),mousey(),2.2
circle mousex(),mousey(),2.1
circle mousex(),mousey(),2.0
circle mousex(),mousey(),1.9
circle mousex(),mousey(),1.8
circle mousex(),mousey(),1.7
circle mousex(),mousey(),1.6
circle mousex(),mousey(),1.5
circle mousex(),mousey(),1.4
circle mousex(),mousey(),1.3
circle mousex(),mousey(),1.2
circle mousex(),mousey(),1.1
circle mousex(),mousey(),1
circle mousex(),mousey(),.9
circle mousex(),mousey(),.8
circle mousex(),mousey(),.7
circle mousex(),mousey(),.6
circle mousex(),mousey(),.5
circle mousex(),mousey(),.4
circle mousex(),mousey(),.3
circle mousex(),mousey(),.2
circle mousex(),mousey(),.1
circle mousex(),mousey(),.0.9
circle mousex(),mousey(),.0.8
circle mousex(),mousey(),.0.7
circle mousex(),mousey(),.0.6
circle mousex(),mousey(),.0.5
circle mousex(),mousey(),.0.4
circle mousex(),mousey(),.0.3
circle mousex(),mousey(),.0.2
circle mousex(),mousey(),.0.1
endif
if mouseclick()=1
ink DrawColour,0
box mousex(),mousey(),mousex()+5,mousey()+5
endif
if shiftkey()=1
ink rgb (0,0,0),0
box mousex(),mousey(),mousex()+10,mousey()+10
endif
if spacekey()=1
ink DrawColour,0
box mousex(),mousey(),mousex()+5,mousey()+5
line mousex(),mousey(),mousex()+15,mousey()+10
endif
if controlkey()=1 then cls
if KEYSTATE (2) then DrawColour = rgb(255,255,255)
if KEYSTATE (3) then DrawColour = rgb(200,0,0)
if KEYSTATE (4) then DrawColour = rgb(0,200,0)
if KEYSTATE (5) then DrawColour = rgb(0,0,255)
if KEYSTATE (6) then DrawColour = rgb(200,200,0)
if KEYSTATE (7) then DrawColour = rgb(250,125,0)
if KEYSTATE (8) then DrawColour = rgb(128,64,0)
if KEYSTATE (9) then DrawColour = rgb(255,128,255)
if KEYSTATE (10) then DrawColour = rgb(125,0,125)
if escapekey()=1 then end
sync
loop
i know this is asking alot but i really need to know
Everyone starts a noob. so lets not laugh at our younger souls.