Making a Pencil stroke?

Problems with Canvas, OpenGL, etc...

Making a Pencil stroke?

Postby thecoolbrian » Wed Dec 01, 2010 4:21 am

Ok I'm using the drawline function
canvas.drawLine(...the coordinates for the line... , renderLandscape);
(http://developer.android.com/reference/android/graphics/Canvas.html is where its from.)
and I want to make this line look like it was drawn with a colored pencil (if you played the game slice it on android I want it to look like those lines)
I would assume I could use something from here or using a bitmap that repeats its self to look like a pencil stroke
(http://developer.android.com/reference/android/graphics/Paint.html)
but I'm not entirely sure.

I already have everything else I want setup to make it look like a pencil
Code: Select all
  public static final Paint renderLandscape = new Paint();
     renderLandscape.setStyle(Style.FILL_AND_STROKE);
        renderLandscape.setStrokeJoin(Paint.Join.ROUND ); 
        renderLandscape.setStrokeCap (Paint.Cap.ROUND);
renderLandscape.setColor(Color.rgb(255,171,72));
renderLandscape.setStrokeWidth(6);


I just don't know what to do this is not really my area please please help me. :lol: :x :( :o :mrgreen:
thecoolbrian
Freshman
Freshman
 
Posts: 6
Joined: Sat Oct 09, 2010 5:06 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 3 guests