Paint\Draw

Blitz3D Forums/Blitz3D Programming/Paint\Draw

Jerome Squalor(Posted 2008) [#1]
hi
this is gonna sound like a really simple question butt...
i want to make a drawing program controlled by the mouse
so far ive started with the basic make a new dot type at mousex and y. whenever i do this and move the mouse to fast, there are gaps between the dots. how do i fix this. im using bb3d.

thnx


Moraldi(Posted 2008) [#2]
Sorry for making this question but why do you want to reinvent the wheel?
Is it only for learning purposes?


Rob Farley(Posted 2008) [#3]
This might help a bit... http://www.blitzbasic.com/codearcs/codearcs.php?code=2224

And... To answer your question.

Store the old mouse position and the new and draw a line between the two.

Graphics 640,480,32,2

MoveMouse 320,240
ox = 320
oy = 240
Repeat

	x = MouseX()
	y = MouseY()
	
	Line ox,oy,x,y
	
	ox = x
	oy = y

Until KeyHit(1)



Jerome Squalor(Posted 2008) [#4]
thnx!!!!


finally!!

you'd think after 2 years of programming i'd know that.
btw Moraldi, im just making a little program for my cousins, plus i never did learn how to do this.