Jdraw v1.0 (prolly the only version that wil ever exist o.O)
Author |
Message |
jrblast
|
|
|
|
|
Sponsor Sponsor
|
|
|
do_pete
|
Posted: Wed Nov 30, 2005 11:23 am Post subject: (No subject) |
|
|
not bad. try replacing
code: | Mouse.Where (x, y, button)
if button = 1 then
Draw.FillOval (x, y, size, size, c)
else
|
with
code: | newx := x
newy := y
Mouse.Where (x, y, button)
if button = 1 then
Draw.ThickLine (newx, newy, x, y, size, c)
else
|
it'll look much better. Ohh and don't forget to declare newx and newy
|
|
|
|
|
|
jamonathin
|
Posted: Wed Nov 30, 2005 1:58 pm Post subject: (No subject) |
|
|
do_pete wrote: Ohh and don't forget to declare newx and newy
And to move the mouse command above newx.
I dont really see the difference between the two, except for the fact that the thick line is actually 5 pixels. But, I personally prefer the oval.
|
|
|
|
|
|
Tony
|
Posted: Wed Nov 30, 2005 2:01 pm Post subject: (No subject) |
|
|
jamonathin - the idea is to draw the line from previous point to the current..
this way if you were to move your mouse faster than oval's radius, it will still be continues.
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
jrblast
|
Posted: Wed Nov 30, 2005 6:54 pm Post subject: (No subject) |
|
|
do_pete wrote: not bad. try replacing
code: | Mouse.Where (x, y, button)
if button = 1 then
Draw.FillOval (x, y, size, size, c)
else
|
with
code: | newx := x
newy := y
Mouse.Where (x, y, button)
if button = 1 then
Draw.ThickLine (newx, newy, x, y, size, c)
else
|
it'll look much better. Ohh and don't forget to declare newx and newy
ill try it, but if you look at the topic title..."...prolly the only version that will ever exist"
but thanks this much *spreads arms wide...stretches arms...arms fall off* for the suggestion,
|
|
|
|
|
|
|
|