Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to represent sea in maps?

 
prav ford
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am making a map. When i click at two points on a panel(on which my map exists). I should be able to draw a wavy line representing the sea legend. I have tried using the brazier curve. But it has only one depression. I need a wave pattern. Cn anybody help.
Thanks,
Prav Ford
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prav

This may not be very useful, but there should be some way to draw a low amplitude sine wave. Maybe someone has some code to do that. You would make the period (length of one cycle) of the sinewave a submultiple of the line length so the ends meet the end points. Then you would need to transform your waveform to the correct angle. These seem like big tasks but maybe someone has already done this!

Ed
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can draw one wave with a bezier curve, then why not just create a method which draws the one wave three times -- then use this method.
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!