Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / help with drawing lines, please

Author
Message
miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 10th Jan 2006 10:54
how do i draw a continual line
(like a paint program...)

this code gives me a broken line if i go too quick...


regards,
miki.

in the end
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 10th Jan 2006 15:52
I cannot give you full code for it , but i can tell you what you COULD do , Like this :
Make it to draw a line from old MOUSE position to new mouse position , how to get old mouse position ? - simply by saving position into a string when mouse click=1 and then it WILL be that position , and to get new position , you can just use whatever you like...

but this is teory , i don`t know to explain you better now , but you will have some problems making that to work...



i wish you good luck !


miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 10th Jan 2006 16:07
Hi!
My dad will come back later.
Thanks^^

in the end
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 10th Jan 2006 19:02 Edited at: 11th Jan 2006 04:42
save it to a file:

in java:


in DB:

i'm not really sure about either, both untested, but its the best i could do in 5 min.

TGC mods are dumber than me.

how i got my avatar: one words: MODs
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 10th Jan 2006 19:15
@dumbo :

How the __ is that gonna help him ?


miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 11th Jan 2006 02:07 Edited at: 11th Jan 2006 02:17
Thanks Dodic,
after a couple of mins working in the oldx, oldy direction i came up with this.




and it works.

ta very much,
miki.

in the end
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 11th Jan 2006 02:49
it`s looking very good now


new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 11th Jan 2006 04:42
Quote: " how the __ is that going to help him? "


well, i have him DB code, what, did he want CPP code?? it sohulda been in other board then!

TGC mods are dumber than me.

how i got my avatar: one words: MODs
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 11th Jan 2006 05:17
hm....you posted JAVA code , dude...


blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 11th Jan 2006 17:42
Quote: "$X = mouseX()
$Y = mouseY()
open file for writing 1,"file.txt"
write to file 1,$X
write to file 1,$Y"


Dumbo, apart from the fact that that's useless that code is also WRONG.

It's 'open file to write' and then 'write byte' or word or dword or w/e. Wtf are you on about.

You don't even close the file, or put it into context.
All you do (ok, *TRY* to do) is open a file and write the current mouse position to it.

Support the AAANJL by doing nothing! Visit teh site below..

Login to post a reply

Server time is: 2025-05-23 02:09:54
Your offset time is: 2025-05-23 02:09:54