
-----------------------------------
Lancelot
Fri Nov 04, 2005 2:38 pm

Doted line
-----------------------------------
Is it possible to make a function which will draw a doted(or dashed) line from one point to another?

Thank you.

-----------------------------------
Tony
Fri Nov 04, 2005 3:15 pm


-----------------------------------
yes, it's quite possible, and relativly simple too. Give it a try :)

-----------------------------------
[Gandalf]
Fri Nov 04, 2005 4:22 pm


-----------------------------------
Here, I'll start you off...

for i : 1 .. 50
    if i mod 2 = 0 then
        Draw.Line (50 + (i * 10), 50, 50 + (i + 1) * 10, 50, black)
    end if
end for
:)
There is much to go on this code, but it shows the basic idea.  You have to make it a function, add some flexibility, the availability for you to specify the start and end coords, etc.  Good luck, and if you need any more help ask.

-----------------------------------
MysticVegeta
Fri Nov 04, 2005 6:01 pm


-----------------------------------
Hmm, even more kissed. 
for i : 1 .. 50 by 2
    Draw.Line (50 + (i * 10), 50, 50 + (i + 1) * 10, 50, black)
end for


-----------------------------------
codemage
Sun Nov 06, 2005 8:57 pm


-----------------------------------
Why not just do that with one line of code?  (Ver 4.0.5)

Draw.DashedLine (0, 200, maxx, 200, drawDot, black)

Doesn't get much simpler than that.

-----------------------------------
MysticVegeta
Sun Nov 06, 2005 10:27 pm


-----------------------------------
wow i really gotta read the manual again!

-----------------------------------
Albrecd
Wed Nov 09, 2005 3:05 pm


-----------------------------------
wow i really gotta read the manual again!

Or you could just use the Turing Reference.

-----------------------------------
codemage
Wed Nov 09, 2005 4:12 pm


-----------------------------------
Draw, F9.

-----------------------------------
MysticVegeta
Wed Nov 09, 2005 6:58 pm


-----------------------------------
wow i really gotta read the manual again!

Or you could just use the Turing Reference.

that is what i meant by manual
