Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to represent sea in maps?  RSS feed

 
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: 24217
38
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!