table of contents
- Tumbleweed 4.20.2-1.1
- Leap-16.0
gtk4-path-tool(1) | GTK commands | gtk4-path-tool(1) |
Name¶
gtk4-path-tool - GskPath Utility
SYNOPSIS¶
gtk4-path-tool <COMMAND> [OPTIONS...] <PATH> gtk4-path-tool decompose [OPTIONS...] <PATH> gtk4-path-tool show [OPTIONS...] <PATH>... gtk4-path-tool render [OPTIONS...] <PATH>... gtk4-path-tool reverse [OPTIONS...] <PATH> gtk4-path-tool info [OPTIONS...] <PATH>
DESCRIPTION¶
gtk4-path-tool can perform various tasks on paths. Paths are specified in SVG syntax, as strings like "M 100 100 C 100 200 200 200 200 100 Z".
To read a path from a file, use a filename that starts with a '.' or a '/'. To read a path from stdin, use '-'.
COMMANDS¶
Decomposing¶
The decompose command approximates the path by one with simpler elements. When used without options, the curves of the path are approximated by line segments.
--allow-quad
--allow-cubic
--allow-conic
Showing¶
The show command displays the given path in a window. The interior of the path is filled. The window allows some interactive control with key bindings: '+'/'-' change the zoom level, 'p' toggles display of points, 'c' toggles display of controls, 'i' toggles display of intersections and 'f' changes the fill rule.
--fill
--stroke
--points
--controls
--intersections
--fill-rule=VALUE
--fg-color=COLOR
--bg-color=COLOR
--point-color=COLOR
--intersection-color=COLOR
--line-width=VALUE
--line-cap=VALUE
--line-join=VALUE
--miter-limit=VALUE
--dashes=VALUE
--dash-offset=VALUE
--zoom=NUMBER
Rendering¶
The render command renders the given path as a PNG image.
--fill
--stroke
--points
--controls
--intersections
--fill-rule=VALUE
--fg-color=COLOR
--bg-color=COLOR
--point-color=COLOR
--intersection-color=COLOR
--output-file=FILE
--line-width=VALUE
--line-cap=VALUE
--line-join=VALUE
--miter-limit=VALUE
--dashes=VALUE
--dash-offset=VALUE
--zoom=NUMBER
Reversing¶
The reverse command changes the direction of the path. The resulting paths starts where the original path ends.
Info¶
The info command shows various information about the given path, such as its bounding box.
REFERENCES¶
- •
- SVG Path Specification, <https://www.w3.org/TR/SVG2/paths.html>
GTK |