Any help for trying to reduce lag?
Code: Select all
do
getmouse (mX, mY, , mB)
if mB = 1 and mY < 292 then
pset (mX, mY), RGB(redValue, greenValue, blueValue)
end if
cC = inkey$
if cC = "X" or cC = "x" then
programStatus = 4
draw string (1,291), "Would you like to save the image? (Y/N)", RGB(255,255,0)
do
cC = inkey$
loop until cC = "Y" or cC = "y" or cC = "N" or cC = "n"
if cC = "Y" or cC = "y" then
if fileName <> "0" then
draw string (1, 291), "Would you like to save the image? (Y/N)", RGB(0,0,0)
draw string (1, 291), "Image saved.", RGB(0, 255, 255)
sleep 3000
end
end if
if fileName = "0" then
draw string (1, 291), "Would you like to save the image? (Y/N)", RGB(0,0,0)
draw string (1, 291), "Enter the name of the image (no extension required):", RGB(0,255,255)
sleep 10500
end if
end if
if cC = "N" or cC = "n" then
sleep 12000
end
end if
end if
if cC = "R" or cC = "r" then
redValue = redValue + 5
end if
if cC = "P" or cC = "p" then
redValue = redValue - 5
end if
if cC = "B" or cC = "b" then
blueValue = blueValue + 5
end if
if cC = "D" or cC = "d" then
blueValue = blueValue - 5
end if
loop