an even better one!
` My Masterpiece
`one which is even better than the previous ;) with better color change, boundries, and save
set display mode 1024,768,16 : Hide mouse
DotHeight=screen height()/2 : DotWidth=screen width()/2 : dot DotWidth,DotHeight
colorchange$="Change color! Press 1 for Red, 2 for Green, 3 for Blue, or press <Shift> for custom color."
ink rgb (255,255,255),0 : Text 10,5, colorchange$
main: : Do
If keystate(2)=1 or keystate(79)=1 : ink rgb(255,0,0),0 : endif : If keystate(3)=1 or keystate(80)=1 : ink rgb(0,255,0),0 : endif : If keystate(4)=1 or keystate(81)=1 : ink rgb(0,0,255),0 : endif
If upkey()=1 : dot DotWidth,DotHeight : Dec DotHeight,1 : endif : If downkey()=1 : dot DotWidth,DotHeight : Inc DotHeight,1 : endif : If leftkey()=1 : dot DotWidth,DotHeight : Dec DotWidth,1 : endif : If rightkey()=1 : dot DotWidth,DotHeight : Inc DotWidth,1 : endif
If DotWidth>screen width()-2 : Dec DotWidth,1 : endif : If DotWidth<2 : Inc DotWidth,1 : endif : If DotHeight>screen height()-2 : Dec DotHeight,1 : endif : If DotHeight<20 : Inc DotHeight,1 : endif
If spacekey()=1 : cls : Text 10,5, colorchange$ : endif : If shiftkey()=1 then gosub inkchange
If controlkey()=1 then sleep 10 : ink rgb(255,255,255),0 : input "Enter a name for the save file. It will be saved in the location of the program. ",fname$ : get image 1,0,40,screen width(),screen height() : save image fname$+".bmp",1 : cls : Print colorchange$
Loop
inkchange:
ink rgb (0,0,0),0 : Text 10,5, colorchange$
ink rgb (255,255,255),0 : Set Cursor 10,5 : Input "Enter Red value.",red : Set Text Opaque : ink rgb (0,0,0),0 : Text 10,5, " "
ink rgb (255,255,255),0 : Set Cursor 10,5 : Input "Enter Green value.",green : Set Text Opaque : ink rgb (0,0,0),0 : Text 10,5, " "
ink rgb (255,255,255),0 : Set Cursor 10,5 : Input "Enter Blue value.",blue : Set Text Opaque : ink rgb (0,0,0),0 : Text 10,5, " "
ink rgb (255,255,255),0 : Text 10,5, colorchange$
ink rgb(red,green,blue),0 : gosub main
