? Sonny's Bad Paint Application ● SmileBASIC Source

Sign In

*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022

Sonny's Bad Paint Application

Public Key
Min. Compat.
0 votes
Description A bare bones paint application made in not a lot of time. Instructions Just make sure not to draw fast or you'll notice how poorly programmed this is. CONTROLS: Touch Screen - Draws X - Clears the screen L/R - Changes the brush size. VERSION HISTORY: V0.1 -Just created.
1 Comment(s) MZ952 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Third Year My account is over 3 years old Website Reading I like to read books! Hobbies Some advice: GCLS accepts a color argument to clear the screen with, so, instead of doing GCLS:GPAINT 0,0,RGB(255,255,255), you could just do GCLS RGB(255,255,255) instead of drawing individual squares at each frame, what you could do is gather touch points along multiple frames and draw lines between those gathered touch points. A simple example may be: DIM TM DIM TX0,TY0'the point that is "now" DIM TX1,TY1'the point that is "then" WHILE 1 TX1=TX0:TY1=TY0'set tx1 & ty1 to be the previous values of tx0,ty0 TOUCH OUT TM,TX0,TY0 IF TM>1 THEN'greater than 1 so that both points 0 and 1 are set GLINE TX0,TY0,TX1,TY1,#WHITE ENDIF WEND Here's a key to some code I wrote for drawing lines like GLINE but with thickness: L5VQ8334 if you're interested