Slanted Lines and curves-river TURING
Author |
Message |
308989961
|
Posted: Tue Jan 01, 2013 3:32 pm Post subject: Slanted Lines and curves-river TURING |
|
|
HI!
I'm trying to draw a river in Turing. So It would consist of a slanted, thick blue line. I'm not sure how to draw the slanted line. In addition, rivers are usually curvy, so would I have to use continuous arcs, or is there a better way to make the edges of the river? Is there some sort of animation I could use to make it seem that it's moving?
Thanks! |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Insectoid
|
Posted: Tue Jan 01, 2013 4:00 pm Post subject: RE:Slanted Lines and curves-river TURING |
|
|
In the future, just put all of your questions in the same thread.
What do you mean by 'slanted'? Because Draw.ThickLine (0, 0, 100, 100, 5, blue) is a slanted line.
As for drawing curves in the river, the process can be easily simplified with arcs and a for loop.
Turing has no built-in animations. You know how to make things move across a screen. Decide what your animation should look like and figure it out from there. What does a simple river look like? This isn't really something I can help you with; you need to figure it out yourself. |
|
|
|
|
|
Raknarg
|
Posted: Tue Jan 01, 2013 11:59 pm Post subject: RE:Slanted Lines and curves-river TURING |
|
|
Look up Bezier curves. |
|
|
|
|
|
Tony
|
Posted: Wed Jan 02, 2013 1:13 am Post subject: RE:Slanted Lines and curves-river TURING |
|
|
As you follow the Bezier curve, you can use Draw.FillOval (instead of Draw.Dot) to add width to your river. You can alternate between different shades for the ovals, to draw waves (animation). |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Raknarg
|
Posted: Wed Jan 02, 2013 10:52 am Post subject: RE:Slanted Lines and curves-river TURING |
|
|
hmm. I usually just connect them with a thick line, I guess that works too |
|
|
|
|
|
308989961
|
Posted: Wed Jan 02, 2013 11:13 am Post subject: Re: Slanted Lines and curves-river TURING |
|
|
Thank you! |
|
|
|
|
|
|
|