Fish icon

New Added in v0.5.0

A free pencil-style fish icon, drawn by code from 1 ellipse, 1 closed shape and 1 dot. Use it as an SVG, a React component, or by name. MIT licensed.

fish

01Use it

Use fish

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

<Fish size={24} />

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

JavaScript

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

toSvg(Fish, { 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-fish" data-sketch="" aria-hidden="true"><path d="M2.57 12.32C2.58 11.99 2.29 10.91 2.63 10.29C2.98 9.68 3.85 9.13 4.62 8.64C5.39 8.15 6.25 7.63 7.24 7.36C8.24 7.08 9.52 6.95 10.6 7.02C11.68 7.08 12.76 7.43 13.73 7.76C14.7 8.09 15.74 8.48 16.4 9.02C17.06 9.55 17.47 10.3 17.68 10.97C17.89 11.65 17.88 12.41 17.67 13.09C17.45 13.77 17.03 14.52 16.38 15.08C15.73 15.64 14.72 16.12 13.74 16.46C12.76 16.8 11.62 17.03 10.5 17.11C9.39 17.18 8.11 17.15 7.05 16.92C5.99 16.68 4.94 16.21 4.13 15.69C3.32 15.18 2.6 14.5 2.22 13.81C1.83 13.12 1.69 12.29 1.8 11.56C1.9 10.82 2.3 10.05 2.84 9.39C3.39 8.73 4.68 7.89 5.05 7.58" stroke-width="1.712"/><path d="M16.84 12.05Q19.12 9.77 21.34 7.42Q21.75 12.04 21.51 16.68Q19.08 14.46 16.84 12.05Q17.55 11.42 18.16 10.7" stroke-width="1.632"/><path d="M6.51 11.09l.01 0" stroke-width="2.48"/></svg>

Pencil variant

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

<Fish size={32} pencil />

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

02How it's drawn

The recipe for fish

Fish is not stored as a drawing. It is a recipe of 1 ellipse, 1 closed shape and 1 dot 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
E 10 12 7.5 4.8;
Z 17 12 21.5 7.5 21.5 16.5;
O 6.5 11
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 fish. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil