System and method for drawing a dashed path
Abstract
A system and method for rendering or facilitating the rendering of an attractive dashed path. A dashed path comprises a pattern of alternating stroke and gap segments; different dash patterns employ different lengths of stroke and gap segments and/or repeat the segments with different frequency. A curve to be drawn with a dashed pattern is divided at critical features (e.g., endpoints, vertices, corners, cusps, intersections) into curve sections. For each curve section, the optimal number of times to repeat a dash pattern (a sequence of segments) is determined, and the optimal length of each segment is calculated, based on constraints specified in the segment's definition. The curve section is then broken into sub-curves corresponding to individual segments. After all curve sections are processed, a trailer may be added to the path, and all sub-curves of all curve sections are rendered.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 2.
Claims (2)
- Claim 1Independent Claim
A method of drawing a dashed curve, the method comprising: using a computer to perform: defining a set of segments, including one or more stroke segments and one or more gap segments, wherein each segment has associated constraints including: a minimum length; a maximum length; and an optimal length; dividing a curve into one or more curve sections; and drawing each curve section with segments from the set of segments to produce a dashed curve, wherein said drawing includes scaling a first segment a first percentage from its optimal length and scaling a second segment a different percentage fr
- Claim 2Depends on #1
The method of claim 1 , wherein each defined segment includes a beginning and an end, and drawing a first curve section comprises: drawing an initial segment in the set of segments, from a point other than the beginning of the initi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (4)
| Patent | Title | Year | Citations |
|---|