0

I want to know is there any way in Android draw a custom curve line with the effect which i set. I want to set the bitmap path effect. Like in image below.

I want to get next result :

enter image description here

If this effect i can do with another way i want to know how i can do it.

Community
  • 1
  • 1
Sergey Shustikov
  • 15,377
  • 12
  • 67
  • 119
  • i don't know if this will help you but i saw (cool) demo by romain guy on path finding: http://www.curious-creature.com/2013/12/21/android-recipe-4-path-tracing/ – royB Dec 30 '14 at 10:24

1 Answers1

0

I think the example here will get you started (see the answer with the most votes, not the accepted answer). You can modify the path in the snippet such that it uses quadTo or cubicTo` calls to draw a curve like in your picture, then step along it using the loop shown, drawing multiple bitmaps with, for each, random offsets for scale and distance from the path (using a separate set of matrices).

Community
  • 1
  • 1
JASON G PETERSON
  • 2,193
  • 1
  • 18
  • 19