User icon

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.

user

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 string

SVG

<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.96 10.78 8.42 10.12 8.26 9.62C8.11 9.11 8.12 8.52 8.18 7.98C8.24 7.43 8.35 6.84 8.61 6.37C8.86 5.89 9.27 5.42 9.72 5.1C10.16 4.78 10.72 4.55 11.26 4.43C11.8 4.31 12.43 4.26 12.97 4.38C13.51 4.5 14.07 4.8 14.51 5.15C14.95 5.5 15.33 5.99 15.62 6.49C15.91 6.99 16.19 7.57 16.26 8.15C16.32 8.72 16.18 9.36 16 9.93C15.82 10.5 15.56 11.09 15.19 11.55C14.81 12.02 14.29 12.46 13.74 12.72C13.2 12.98 12.52 13.1 11.91 13.11C11.29 13.11 10.61 13 10.05 12.73C9.5 12.47 8.98 12 8.58 11.52C8.19 11.04 7.9 10.44 7.68 9.84C7.46 9.24 7.34 8.23 7.27 7.91" 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.2.1.

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.

A · Recipe
C 12 8.5 3.8;
A 12 21 7.5 200 340
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of user. Seed 0 is the default.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil