Git pull request icon

Added in v0.2.0

A free pencil-style git pull request icon, drawn by code from 3 circles, 1 line and 2 polylines. Use it as an SVG, a React component, or by name. MIT licensed.

git-pull-request

01Use it

Use git-pull-request

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

<GitPullRequest size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="git-pull-request" />

JavaScript

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

toSvg(GitPullRequest, { 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-git-pull-request" data-sketch="" aria-hidden="true"><path d="M8.54 5.49C8.52 5.64 8.48 6.07 8.4 6.36C8.32 6.65 8.24 6.98 8.05 7.22C7.86 7.46 7.56 7.66 7.27 7.82C6.98 7.97 6.65 8.11 6.32 8.16C5.99 8.22 5.61 8.22 5.29 8.14C4.96 8.07 4.65 7.88 4.36 7.7C4.08 7.51 3.79 7.3 3.58 7.04C3.36 6.78 3.17 6.46 3.08 6.14C2.98 5.82 2.96 5.45 2.99 5.1C3.03 4.76 3.12 4.39 3.28 4.08C3.45 3.77 3.7 3.47 3.98 3.23C4.26 3 4.6 2.81 4.95 2.67C5.3 2.53 5.7 2.42 6.08 2.41C6.47 2.39 6.9 2.44 7.26 2.57C7.63 2.7 7.98 2.93 8.28 3.18C8.58 3.43 8.88 3.74 9.07 4.08C9.25 4.42 9.34 4.83 9.39 5.22C9.45 5.61 9.4 6.23 9.4 6.43" stroke-width="1.648"/><path d="M3.66 17.74C3.72 17.59 3.81 17.09 3.99 16.84C4.17 16.58 4.46 16.37 4.73 16.2C5.01 16.03 5.33 15.86 5.64 15.82C5.96 15.78 6.3 15.88 6.62 15.95C6.94 16.03 7.28 16.1 7.56 16.28C7.83 16.45 8.05 16.74 8.25 17.01C8.45 17.28 8.66 17.59 8.75 17.92C8.85 18.25 8.87 18.64 8.82 18.99C8.77 19.34 8.63 19.7 8.45 20C8.27 20.31 8.02 20.59 7.74 20.81C7.47 21.04 7.14 21.23 6.8 21.36C6.46 21.49 6.06 21.61 5.69 21.59C5.33 21.57 4.94 21.42 4.6 21.25C4.27 21.08 3.95 20.83 3.68 20.56C3.41 20.28 3.15 19.96 2.99 19.6C2.83 19.24 2.74 18.81 2.74 18.41C2.74 18 2.93 17.39 2.96 17.19" stroke-width="1.808"/><path d="M6.01 7.71Q6.15 12.02 6.01 16.34" stroke-width="1.696"/><path d="M17.11 20.79C16.95 20.71 16.42 20.52 16.16 20.29C15.89 20.06 15.63 19.73 15.51 19.4C15.38 19.07 15.37 18.66 15.4 18.3C15.42 17.94 15.51 17.56 15.68 17.24C15.84 16.91 16.09 16.58 16.38 16.35C16.67 16.12 17.06 15.94 17.43 15.85C17.8 15.76 18.22 15.75 18.6 15.82C18.97 15.9 19.35 16.08 19.68 16.3C20 16.52 20.35 16.79 20.56 17.12C20.78 17.46 20.92 17.9 20.95 18.3C20.98 18.69 20.91 19.14 20.77 19.52C20.63 19.9 20.41 20.31 20.12 20.6C19.83 20.88 19.43 21.09 19.04 21.24C18.65 21.4 18.2 21.52 17.79 21.51C17.37 21.5 16.9 21.37 16.53 21.17C16.16 20.97 15.82 20.65 15.56 20.32C15.29 19.98 15.06 19.36 14.95 19.16" stroke-width="1.456"/><path d="M17.98 16.69Q18.34 11.76 18.13 6.83Q15.06 6.87 12 7.21" stroke-width="1.536"/><path d="M15.17 4.3Q13.66 5.46 12.32 6.82Q13.7 8.35 15.26 9.69" stroke-width="1.632"/></svg>

Pencil variant

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

<GitPullRequest size={32} pencil />

The file is icons/git-pull-request.svg in the package (pencil/git-pull-request.svg for the pencil variant). Matita 0.7.0.

02How it's drawn

The recipe for git-pull-request

Git pull request is not stored as a drawing. It is a recipe of 3 circles, 1 line and 2 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
C 6 5.5 2.5;
C 6 18.5 2.5;
L 6 8 6 16;
C 18 18.5 2.5;
P 18 16 18 7 12.5 7;
P 15 4.5 12.5 7 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 git-pull-request. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil