Why Laser Cutters Need Specific SVG Stroke Colors and Widths
Laser cutting software interprets Scalable Vector Graphics (SVG) not as visual illustrations, but as precise mechanical pathways and machining instructions. This article explains why laser cutting systems depend on specific stroke colors to map out distinct operations—such as cutting, vector scoring, and raster engraving—and require specific stroke widths (hairlines) to ensure the machine traces exact paths rather than attempting to fill them.
Operation Mapping Through Stroke Color
Laser cutters do not possess inherent intelligence to know which parts of a design should be cut through, marked lightly, or etched away. Instead, machine drivers and control software use stroke color codes (typically defined by standard RGB or HEX values) to assign specific machine parameters:
- Vector Cutting: Often mapped to pure red
(
#FF0000), signaling the laser to run at high power and lower speeds to cut entirely through the material. - Vector Scoring/Marking: Often mapped to pure blue
(
#0000FF), signaling the machine to follow lines at lower power and higher speeds to leave a visible mark without piercing the substrate. - Raster Engraving: Often mapped to black
(
#000000) or filled shapes, signaling the laser to sweep back and forth line-by-line to remove surface material. - Process Sequencing: Color mapping allows users to set the execution order. For example, inner cutouts and surface engravings must execute before the outer perimeter is cut, preventing the part from shifting out of alignment before all operations are complete.
Vector Paths vs. Raster Shapes via Stroke Width
Stroke width determines whether the machine reads a line as a single mathematical path or as an area with physical volume.
- The Hairline Requirement: For a laser to follow a
line directly (vector cutting or scoring), the stroke width must be set
to a “hairline” value—typically
0.001 inches,0.01 mm, or0.072 pointsdepending on the software. This signals to the laser controller that the path has no physical thickness. - Thick Stroke Misinterpretation: When a stroke width
is set too thick (e.g.,
1 ptor1 mm), the software no longer recognizes it as a single center-line path. Instead, it either treats the line as a closed polygon and tries to engrave it by scanning back and forth, or it creates two parallel cutting paths along the outer edges of the stroke, ruining the intended geometry.
Beam Kerf and Coordinate Precision
A laser beam has a physical diameter, known as the kerf (usually
between 0.08 mm and 0.25 mm). Mathematical SVG
paths represent zero-width lines in Cartesian coordinates. By using
hairline strokes with standardized colors, the machine’s firmware can
accurately calculate the laser’s trajectory, apply kerf compensation
algorithms, and optimize the motion controller for smooth acceleration
along vector curves.