QB64.org Forum
Active Forums => Programs => Topic started by: qbkiller101 on October 25, 2020, 12:20:26 pm
-
Random drawing app made in 3 mins:
Draws 9 pixels each time
right button for delete
left for draw
might expand on it and add saving options
-
Well I see you really knocked yourself out with this ;-))
[ This attachment cannot be displayed inline in 'Print Page' view ]
-
Hey qbkiller,
you can compact your code like this:
For y = -1 to 1
For x = -1 to 1
PSET (_MOUSEX+x, _MOUSEY+y), 7
next:next
and again for black
then if u want a bigger draw square you can
have it range from -2 to 2 or set size as
-n to +n
-
Or this:
BTW ELSEIF in OP is better than ELSE IF (with space between)