Tree icon
New Added in v0.6.0
A free pencil-style tree icon, drawn by code from 1 closed shape and 1 line. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use tree
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { Tree } from '@matita/icons/react';
<Tree size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="tree" />JavaScript
import { Tree, toSvg } from '@matita/icons';
toSvg(Tree, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-tree" data-sketch="" aria-hidden="true"><path d="M12.11 2.34Q15.05 6.31 17.86 10.38Q16.65 10.55 15.42 10.63Q17.9 13.71 20.05 17.03Q12.1 16.46 4.13 16.82Q6.55 13.89 8.54 10.65Q7.28 10.53 6.03 10.3Q8.77 6.1 12.11 2.34Q12.59 2.92 12.98 3.56" stroke-width="1.632"/><path d="M11.91 16.7Q11.89 19.34 12.17 21.98" stroke-width="1.616"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Tree } from '@matita/icons/react';
<Tree size={32} pencil />The file is icons/tree.svg in the package (pencil/tree.svg for the pencil variant). Matita 0.6.0.
02How it's drawn
The recipe for tree
Tree is not stored as a drawing. It is a recipe of 1 closed shape and 1 line on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
Z 12 2.5 18 10.5 15.5 10.5 20 17 4 17 8.5 10.5 6 10.5;
L 12 17 12 21.5
tree as a number: 1837839573
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of tree. Seed 0 is the default.
tree from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/tree.svg.
True pixel sizes.