Shuffle icon

New Added in v0.4.0

A free pencil-style shuffle icon, drawn by code from 5 polylines. Use it as an SVG, a React component, or by name. MIT licensed.

shuffle

01Use it

Use shuffle

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

<Shuffle size={24} />

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

JavaScript

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

toSvg(Shuffle, { 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-shuffle" data-sketch="" aria-hidden="true"><path d="M2.39 16.81Q5.1 16.79 7.8 16.87Q11.81 11.85 16.16 7.13Q18.8 7.33 21.44 7.06" stroke-width="1.616"/><path d="M2.52 6.83Q5.22 6.84 7.92 7.03Q9.35 8.65 10.69 10.34" stroke-width="1.504"/><path d="M13.24 14.01Q14.69 15.45 16.12 16.92Q18.67 17.14 21.24 17.08" stroke-width="1.376"/><path d="M17.7 3.71Q19.24 5.36 20.81 6.99Q19.3 8.55 17.82 10.13" stroke-width="1.488"/><path d="M17.57 13.38Q19.43 15.04 21.09 16.9Q19.47 18.42 17.92 20.01" stroke-width="1.504"/></svg>

Pencil variant

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

<Shuffle size={32} pencil />

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

02How it's drawn

The recipe for shuffle

Shuffle is not stored as a drawing. It is a recipe of 5 polylines 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
P 3 17 8 17 16 7 21 7;
P 3 7 8 7 10.5 10;
P 13.5 14 16 17 21 17;
P 18 4 21 7 18 10;
P 18 14 21 17 18 20
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 shuffle. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil