Using the Drawline function to create a "pencil stroke"
<p>Ok so I'm making a game and I'm having a problem, that Is I don't have
anyway of going about this, Making a line that looks like a pencil stroke.
I start out with </p>

<pre><code>drawLine(float startX, float startY, float stopX,float stopY, Paint paint);
</code></pre>

<p>of course
and then I I use all the stuff involved with <code>Paint()</code> and the paint
class so I set the color and the thickness in the paint...</p>

<p>So What I'm wondering is how do I give my paint a texture that
resembles a pencil stroke. is there a way I can make the paint look
like a repeated bitmap, what are my options with this.</p>

<p>Thanks, Brian</p>

<p>p.s. if you want more detail I can expound on it a little more like
give you the exact code that I'm using and explain more about my
game....
also here are links to the paint class and the canvas class if you
need them.</p>

<p><a href="http://developer.android.com/reference/android/graphics/Paint.html" rel="nofollow">http://developer.android.com/reference/android/graphics/Paint.html</a></p>

<p><a href="http://developer.android.com/reference/android/graphics/Canvas.html" rel="nofollow">http://developer.android.com/reference/android/graphics/Canvas.html</a></p>

<p>Also</p>

<pre><code>void drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint)
</code></pre>

<p>Treat the specified array of colors as a bitmap, and draw it."
Can I use that I'm really not sure what its saying. </p>

<p>please even if you have a little information please reply.</p>
