<br><br><div class="gmail_quote">On Dec 11, 2007 3:24 PM, Donn &lt;<a href="mailto:donn.ingle@gmail.com" target="_blank">donn.ingle@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>&gt; My situation is this: I want to write a progam, which use mouse as the<br>&gt; brush pen. if you move mouse faster, you will get thinner stroke,<br></div>Sure, that&#39;s possible. You could:<br>1. Create a brush shape - say a circle.
<br>2. Track the mouse x,y and &quot;stamp&quot; the circle down there.<br>3. As the speed increases (monitor the gap between this x,y and last x,y), use<br>that to make the &quot;stamp&quot; smaller.<br>4. loop<br><br>I suppose one could keep a clever track of nodes on the sides of each circle
<br>and after a &quot;stroke&quot; has been drawn, actually create a path from each of<br>those nodes and draw that instead -- that way you won&#39;t see all the little<br>edges of the circles. So, the circles are simply the visual part of the
<br>drawing process, the path is the end result.</blockquote><div>&nbsp;</div><div>yes,&nbsp; that was exactly what I thought before. Yesterday night I tried this idea, and it looked not very good. I think maybe the problems are 1) I choose a bad math function width = C / speed. 2) when I use mouse to write, I can&#39;t move the mouse smoothly, so the speed changed not smoothly. 3) when I use brush pen, the pen pressure is changing, that will affect the line width. But with mouse, I can&#39;t do that.
<br><br>So I think a idea: I can record the user&#39;s movement, and judge what he/she want to write (chinese character&#39;s is composed of about thirty basic strokes), then I can show already stored basic vector stokes in the user&#39;s movement area. To achieve that, I must store all the basic vector stokes, their position, width, height, lean angle can be variable. To me seems not very easy, I have to work hard, but it is intersting :)
<br><br>Omg ,did I express my idea explicitly :( ?<br></div></div>