<br><br><div class="gmail_quote">On Dec 11, 2007 3:24 PM, Donn <<a href="mailto:donn.ingle@gmail.com" target="_blank">donn.ingle@gmail.com</a>> 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>> My situation is this: I want to write a progam, which use mouse as the<br>> brush pen. if you move mouse faster, you will get thinner stroke,<br></div>Sure, that's possible. You could:<br>1. Create a brush shape - say a circle.
<br>2. Track the mouse x,y and "stamp" 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 "stamp" 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 "stroke" has been drawn, actually create a path from each of<br>those nodes and draw that instead -- that way you won'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> </div><div>yes, 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'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't do that.
<br><br>So I think a idea: I can record the user's movement, and judge what he/she want to write (chinese character's is composed of about thirty basic strokes), then I can show already stored basic vector stokes in the user'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>