Frown icon

New Added in v0.5.0

A free pencil-style frown icon, drawn by code from 1 circle, 1 curve and 2 dots. Use it as an SVG, a React component, or by name. MIT licensed.

frown

01Use it

Use frown

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 { Frown } from '@matita/icons/react';

<Frown size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="frown" />

JavaScript

import { Frown, toSvg } from '@matita/icons';

toSvg(Frown, { 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-frown" data-sketch="" aria-hidden="true"><path d="M18.73 6.97C19.08 7.45 20.48 8.76 20.82 9.81C21.16 10.85 20.97 12.13 20.78 13.25C20.59 14.37 20.31 15.59 19.68 16.55C19.05 17.51 18.03 18.37 17 19.03C15.97 19.69 14.7 20.35 13.48 20.51C12.26 20.67 10.9 20.31 9.68 19.99C8.46 19.68 7.14 19.32 6.16 18.63C5.19 17.94 4.39 16.87 3.82 15.83C3.24 14.8 2.83 13.61 2.71 12.45C2.59 11.28 2.66 9.95 3.09 8.85C3.51 7.74 4.36 6.66 5.28 5.8C6.19 4.94 7.34 4.13 8.55 3.69C9.76 3.25 11.22 3.07 12.52 3.15C13.82 3.23 15.2 3.62 16.35 4.17C17.49 4.73 18.55 5.58 19.4 6.5C20.24 7.43 21 8.54 21.42 9.7C21.83 10.86 21.79 12.85 21.86 13.48" stroke-width="1.728"/><path d="M7.83 16.71Q11.82 13.1 16.14 16.86" stroke-width="1.456"/><path d="M9.05 9.68l.01 0M15.14 9.53l.01 0" stroke-width="2.48"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { Frown } from '@matita/icons/react';

<Frown size={32} pencil />

The file is icons/frown.svg in the package (pencil/frown.svg for the pencil variant). Matita 0.5.1.

02How it's drawn

The recipe for frown

Frown is not stored as a drawing. It is a recipe of 1 circle, 1 curve and 2 dots 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 12 8.5;
Q 8 16.5 12 13 16 16.5;
O 9 9.5;
O 15 9.5
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 frown. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

frown from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/frown.svg.

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

True pixel sizes.

Ink
Pencil