Graduation cap icon
New Added in v0.4.0
A free pencil-style graduation cap icon, drawn by code from 1 closed shape, 1 polyline and 1 line. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use graduation-cap
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 { GraduationCap } from '@matita/icons/react';
<GraduationCap size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="graduation-cap" />JavaScript
import { GraduationCap, toSvg } from '@matita/icons';
toSvg(GraduationCap, { 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-graduation-cap" data-sketch="" aria-hidden="true"><path d="M11.87 4.4Q17.12 6.51 22 9.37Q17.15 12.01 12.13 14.32Q7.12 11.57 1.86 9.33Q7.02 7.17 11.87 4.4Q12.4 4.63 12.9 4.9" stroke-width="1.504"/><path d="M6.12 11.72Q6.1 13.88 6.17 16.05Q9.18 17.49 12.16 19.01Q15.22 17.75 18.05 16.03Q17.78 13.93 17.8 11.82" stroke-width="1.632"/><path d="M21.95 9.05Q21.93 12.09 22.14 15.13" stroke-width="1.504"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { GraduationCap } from '@matita/icons/react';
<GraduationCap size={32} pencil />The file is icons/graduation-cap.svg in the package (pencil/graduation-cap.svg for the pencil variant). Matita 0.4.0.
02How it's drawn
The recipe for graduation-cap
Graduation cap is not stored as a drawing. It is a recipe of 1 closed shape, 1 polyline 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 4.5 22 9.5 12 14.5 2 9.5;
P 6 12 6 16 12 19 18 16 18 12;
L 22 9.5 22 15
graduation-cap as a number: 4000412484
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 graduation-cap. Seed 0 is the default.
graduation-cap from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/graduation-cap.svg.
True pixel sizes.