BBC BASIC for Windows
Programming >> Graphics and Games >> Chalk Board
http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1492978996
Chalk Board
Post by Ric on Apr 23rd, 2017, 8:23pm
Just thought I would share this with you all.
My son wanted to draw some pictures on the laptop, but when I showed I'm MS Paint he was completely bemused and asked for something simpler. Rather than look up some app I decided to make one.
It works far more intuitively with a touch screen but feel free to use it if you have small kids.
The second icon up on the right was going to be used to save/load pictures but it turned out it was more fun if the pictures could not be saved.
https://1drv.ms/u/s!AqibHqCkE1VQkGkxYRqiIHgopJPz
Happy playing
Ric
Re: Chalk Board
Post by KenDown on Apr 26th, 2017, 1:31pm
Very nice.
How about some rubber banding - not sure how you'd implement it without a keyboard, possibly a double click?
Re: Chalk Board
Post by Ric on Apr 26th, 2017, 2:43pm
Sorry Ken, unfortunately the project has finished as my son was really happy with it. The next bit is down to you 
Regards Ric
Re: Chalk Board
Post by sbracken on Apr 28th, 2017, 08:25am
Hi Ric,
Fun program, but the code has a small mistake at the end of PROCsetupleft
Code:
which causes a small system window to open and close very rapidly when the program starts or a new canvas is created.
Also, is there a reason for the code relating to the creation of the DIB at the start? Apologies if I am missing the obvious, but that sort of stuff is way above my head, and the program runs perfectly happily if you delete it...
Simon
Re: Chalk Board
Post by Ric on Apr 28th, 2017, 12:38pm
Thanks Simon,
The creation of the DIBSection is only there because it is part of the base program I use, which usually involves accessing the screen directly rather than using DRAW PLOT etc. In this case you are right it is redundant.
The * was probably introduced by my 1 Year old, who likes attacking my laptop at any given moment😉
Regards Ric
Re: Chalk Board
Post by KenDown on Apr 28th, 2017, 12:46pm
Thanks, mate. I've already written a simple graphics program that includes rubber banding. I simply suggested it as I find the process a) useful and b) interesting and thought your sone might think the same.
Re: Chalk Board
Post by DDRM on Apr 29th, 2017, 08:35am
Hi Ric,
It's nice, and a good reminder that sometimes simple is better than fancy! I haven't tried it on a tablet yet, but it works fine on a desktop.
Best wishes,
D