Method for generating writing brush handwriting
A handwriting and brush technology, applied in the field of drawing, can solve the problems of lack of features and the inability to display the effect in real time during the drawing process, and achieve the effect of high drawing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0122] Step 10. Select a device that can display basic graphics (such as straight lines, curves, etc.) to act as a canvas;
[0123] Step 20. Obtain the position of the track point where the device is pressed: DownPoint;
[0124] Step 30, initialize related variables:
[0125] Step 301, set the basic pen width PenWidth0, and make the previous handwriting prePenWidth=PenWidth0; the color of the handwriting can also be set as required: PenColor0;
[0126] Step 302, set the number of drawing points Pointk (k=1,2,3,..n) to 4, namely n=4; then make:
[0127] Point1 = DownPoint;
[0128] Point2 = Point1;
[0129] Point3 = Point1;
[0130] Point4 = Point1;
[0131] Step 40, when there is movement on the device, write down the position of the current track point after the movement: MovePoint;
[0132] Step 50, seek the midpoint coordinates between the current track point Point4 of step 40 and the previous track point Point3, and record and replace the coordinates of the current tra...
Embodiment 2
[0162] The difference between the second embodiment and the first embodiment is that adding pen and ink dilution treatment, that is, adding the "transparency" factor, usually the faster the writing speed, the thinner the "pen and ink" should be in addition to the smaller the width of the handwriting.
[0163] Therefore, corresponding adjustments are made in some steps in Embodiment 1, and the adjustments are as follows:
[0164] 1. In the second embodiment, step 303 is added in step 30,
[0165] Step 303 , initialize ink dilution preAlpha: set preAlpha=PenAlpha0, where PenAlpha0=128.
[0166] 2. Embodiment two increases the specific calculation process of ink dilution in step 60:
[0167] Step 621, make PenAlpha=PenAlpha0*k3; wherein, k3=here directly take the k2 mentioned in the process of calculating the pen width;
[0168] Step 622, judge the difference in transparency between the two strokes before and after, if:
[0169] abs(PenAlpha-preAlpha)>3
[0170] Then adjust a...
Embodiment 3
[0177] The difference between this embodiment three and implementation one is:
[0178] 1. Step 70 in the third embodiment is only executed once, and the value of A is 45°;
[0179] 2. Step 90 in the third embodiment connects the drawing points with a straight line;
[0180] 3. Embodiment 3 During the initialization process in step 30, the value of the initial pen width is set to be small.
[0181] The remaining steps are the same as in Embodiment 1 and will not be repeated here. The final drawing effect is as follows Figure 4 As shown, the drawing effect is similar to that of the first embodiment, but because step 70 is only executed once, and step 90 connects the drawing points with a straight line, the implementation will appear simpler and the amount of calculation will be smaller.
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com