Popcorn icon

New Added in v0.7.0

A free pencil-style popcorn icon, drawn by code from 1 closed shape, 2 lines and 3 arcs. Use it as an SVG, a React component, or by name. MIT licensed.

popcorn

01Use it

Use popcorn

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

<Popcorn size={24} />

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

JavaScript

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

toSvg(Popcorn, { 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-popcorn" data-sketch="" aria-hidden="true"><path d="M5.85 10.81Q11.95 11.42 18.06 11.09Q17.54 16.03 16.39 20.87Q11.89 20.87 7.4 21.07Q6.67 15.93 5.85 10.81Q6.75 10.78 7.64 10.85" stroke-width="1.824"/><path d="M9.79 11.07Q10.4 15.93 10.48 20.82" stroke-width="1.792"/><path d="M13.99 11.22Q13.65 15.95 13.51 20.69" stroke-width="1.424"/><path d="M9.23 11.01C9.05 11.07 8.51 11.38 8.13 11.4C7.76 11.43 7.34 11.29 6.98 11.16C6.61 11.02 6.2 10.86 5.94 10.59C5.68 10.32 5.57 9.89 5.42 9.53C5.28 9.17 5.08 8.78 5.08 8.41C5.08 8.03 5.23 7.6 5.42 7.28C5.62 6.95 5.93 6.68 6.23 6.46C6.53 6.25 6.87 6.07 7.21 5.98C7.55 5.88 8.11 5.89 8.29 5.87" stroke-width="1.456"/><path d="M9.13 6.37C9.1 6.16 8.87 5.46 8.99 5.08C9.11 4.7 9.52 4.37 9.83 4.09C10.13 3.81 10.46 3.61 10.83 3.41C11.19 3.2 11.6 2.87 12 2.84C12.4 2.82 12.88 3.04 13.25 3.23C13.63 3.42 13.99 3.69 14.27 4C14.56 4.32 14.86 4.7 14.96 5.1C15.06 5.49 14.87 6.16 14.86 6.37" stroke-width="1.504"/><path d="M15.63 5.71C15.82 5.73 16.43 5.73 16.78 5.85C17.13 5.98 17.45 6.22 17.72 6.47C18 6.71 18.28 7 18.43 7.32C18.59 7.65 18.64 8.05 18.65 8.41C18.66 8.77 18.62 9.17 18.49 9.5C18.36 9.84 18.11 10.13 17.87 10.42C17.62 10.71 17.35 11.12 17.01 11.24C16.67 11.36 16.22 11.18 15.83 11.15C15.44 11.12 14.86 11.08 14.66 11.07" stroke-width="1.728"/></svg>

Pencil variant

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

<Popcorn size={32} pencil />

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

02How it's drawn

The recipe for popcorn

Popcorn is not stored as a drawing. It is a recipe of 1 closed shape, 2 lines and 3 arcs 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
Z 6 11 18 11 16.5 21 7.5 21;
L 10 11.5 10.5 20.5;
L 14 11.5 13.5 20.5;
A 8 8.5 2.8 70 270;
A 12 6 3 180 360;
A 16 8.5 2.8 270 470
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 popcorn. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil