Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to represent sea in maps?  RSS feed

 
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
 
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
 
author and iconoclast
Sheriff
Posts: 24219
40
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!