Vector Editing Tools
Relevant source files
The following files were used as context for generating this wiki page:
- website/content/features.md
- website/content/blog/2024-07-31-graphite-progress-report-q2-2024.md
- website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md
- website/content/blog/2024-01-01-looking-back-on-2023-and-what's-next.md
- website/content/learn/_outline_draft.md
- website/content/volunteer/guide/student-projects/_index.md
- README.md
Graphite provides a comprehensive suite of vector editing tools designed around a "sharp at all sizes" philosophy. Unlike raster-based systems, Graphite treats artwork as mathematically-described data, allowing curves to remain crisp regardless of resolution or zoom level. The system utilizes a hybrid editing workflow where interactive viewport tools—such as the Pen, Path, and Shape tools—act as user-friendly wrappers for an underlying procedural node graph.
The vector toolset is built upon the Graphene engine, which enables a 100% nondestructive workflow. This allows artists to switch between traditional layer-based manipulation and advanced node-based generative design. Every transformation, from a simple rectangle to complex boolean path operations, is recorded parametrically and can be adjusted after-the-fact without losing data.
Sources: website/content/features.md:30-45, README.md:10-15, website/content/blog/2022-03-12-graphite-a-vision-for-the-future-of-2d-content-creation.md:15-20
Core Viewport Tools
Graphite’s vector interaction is primarily handled through specialized tools that manipulate path data and parametric shapes.
Pen and Path Tools
The Pen and Path tools are the primary means of creating and refining custom geometry.
- Pen Tool: Facilitates point-by-point path creation. Recent updates include point-by-point undo, allowing users to revert the last placed anchor without discarding the entire shape.
- Path Tool: Used for manipulating existing anchor points and handles. It supports "sliding" point insertion on path segments, breaking closed shapes by deleting points, and locking handles as colinear via a checkbox in the properties panel.
Sources: website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md:88-100, website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md:120-130, website/content/blog/2024-01-01-looking-back-on-2023-and-what's-next.md:180-185
Shape and Parametric Tools
Standard geometric shapes are handled through parametric nodes, which expose specific attributes for live editing.
- Rectangle Node: Supports adjustable corner rounding.
- Polygon Tool: Capable of generating stars and convex polygons.
- Transform Logic: Tools support exact numerical positions and math expressions (e.g.,
*2,sqrt()) within input fields.
Sources: website/content/blog/2024-07-31-graphite-progress-report-q2-2024.md:65-70, website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md:175-180, website/content/blog/2024-01-01-looking-back-on-2023-and-what's-next.md:185-190
Procedural Operations and Geometry Nodes
Graphite extends basic vector editing with procedural nodes that can perform complex geometric transformations and analysis.
Boolean Operations
The Boolean Operation node allows for nondestructive combination of path data. It supports several intersection modes:
- Union: Merges shapes.
- Subtract Front / Subtract Back: Uses one shape to cut another.
- Intersect: Keeps only the overlapping area.
- Difference: Keeps everything except the overlapping area.
Sources: website/content/blog/2024-07-31-graphite-progress-report-q2-2024.md:95-105
Distribution and Transformation
- Copy to Points: Scatters geometry across anchor points with randomized scale, rotation, and biasing.
- Poisson-Disk Points: Samples randomly distributed points within a shape's interior for organic scattering.
- Morph Node: Enables tweening and interpolation between different vector shapes.
- Solidify Stroke: Converts a path's stroke into a filled vector shape.
Sources: website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md:50-55, website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md:75-85, website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md:115-120
Geometric Analysis
Graphite includes utility nodes for inspecting geometry:
- Area Node: Calculates the interior size of a shape.
- Centroid Node: Calculates the center of mass of a shape.
Sources: website/content/blog/2024-07-31-graphite-progress-report-q2-2024.md:88-93
Technical Architecture: Data Flow
Vector data in Graphite flows through a unified document graph. Viewport tools act by inserting or modifying nodes within this graph, which are then rendered to the Output node.
The Unified Graph Flow
This diagram illustrates how user interactions from the viewport tools are processed into the node graph and eventually rendered.
The diagram shows the transition from interactive input to procedural processing and finally to high-performance rendering.
Sources: website/content/learn/_outline_draft.md:45-65, website/content/blog/2024-01-01-looking-back-on-2023-and-what's-next.md:210-230
Precision and Snapping
To assist in professional layouts, Graphite employs a precise snapping and grid system.
| Feature | Description | Contexts |
|---|---|---|
| Snapping | Aligns points and edges with other shapes or the grid. | Viewport, Path Tool |
| Grids | Customizable rectangular and isometric lines with color/dotted choices. | Document Background |
| Artboards | Fixed-size containers for vector content within an infinite canvas. | Document Structure |
| Area/Centroid | Mathematical calculation of shape properties. | Node Graph |
Sources: website/content/blog/2024-07-31-graphite-progress-report-q2-2024.md:60-65, website/content/blog/2024-05-09-graphite-progress-report-q1-2024.md:60-70
Summary of Feature Roadmap
The vector system is under active development, with several milestones reached and planned.
- Released: Boolean operations, precise snapping, parametric shapes, and SVG import.
- Ongoing/Planned: Text-on-path tool support, robust vector mesh editing, and a nondestructive shape builder tool.
- Rendering: Transitioning to Vello (GPU-accelerated) for high-performance vector compositing.
Sources: website/content/features.md:110-130, website/content/blog/2024-01-01-looking-back-on-2023-and-what's-next.md:255-270