User icon
Added in v0.1.0
A free pencil-style user icon, drawn by code from 1 circle and 1 arc. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use user
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 { User } from '@matita/icons/react';
<User size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="user" />JavaScript
import { User, toSvg } from '@matita/icons';
toSvg(User, { 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-user" data-sketch="" aria-hidden="true"><path d="M9.1 11.01C8.97 10.8 8.47 10.22 8.31 9.77C8.15 9.31 8.14 8.78 8.15 8.28C8.16 7.79 8.2 7.25 8.38 6.79C8.56 6.33 8.87 5.86 9.22 5.51C9.58 5.15 10.04 4.87 10.5 4.66C10.96 4.45 11.49 4.27 11.99 4.26C12.5 4.25 13.05 4.38 13.52 4.58C13.99 4.78 14.44 5.09 14.83 5.44C15.22 5.79 15.64 6.19 15.87 6.66C16.11 7.13 16.19 7.71 16.23 8.25C16.28 8.79 16.28 9.38 16.15 9.91C16.02 10.44 15.77 11.01 15.44 11.45C15.1 11.89 14.62 12.28 14.14 12.56C13.65 12.84 13.07 13.08 12.52 13.14C11.97 13.21 11.35 13.11 10.81 12.95C10.28 12.79 9.77 12.5 9.29 12.18C8.81 11.86 8.16 11.22 7.93 11.03" stroke-width="1.728"/><path d="M4.74 19.52C4.93 19.08 5.38 17.69 5.9 16.89C6.42 16.1 7.07 15.28 7.85 14.75C8.62 14.22 9.62 13.89 10.55 13.7C11.49 13.52 12.52 13.47 13.46 13.63C14.4 13.79 15.39 14.16 16.21 14.67C17.02 15.19 17.81 15.93 18.34 16.73C18.87 17.53 19.22 19.03 19.39 19.49" stroke-width="1.824"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { User } from '@matita/icons/react';
<User size={32} pencil />The file is icons/user.svg in the package (pencil/user.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for user
User is not stored as a drawing. It is a recipe of 1 circle and 1 arc 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.
C 12 8.5 3.8;
A 12 21 7.5 200 340
user as a number: 1618501362
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, 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 user. Seed 0 is the default.
user from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/user.svg.
True pixel sizes.