Trophy icon

New Added in v0.4.0

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

trophy

01Use it

Use trophy

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

<Trophy size={24} />

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

JavaScript

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

toSvg(Trophy, { 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-trophy" data-sketch="" aria-hidden="true"><path d="M7.08 4.19Q12.02 3.75 16.98 4.02Q15.92 8.16 15.4 12.4Q11.88 12.57 8.36 12.68Q7.9 8.4 7.08 4.19Q7.81 4.18 8.54 4.16" stroke-width="1.664"/><path d="M7.14 5.32Q5.37 5.42 3.59 5.51Q4 7.2 4.11 8.93Q6.1 9.58 8.12 10.15" stroke-width="1.472"/><path d="M16.85 5.4Q18.59 5.51 20.32 5.68Q20 7.32 19.97 8.99Q18.02 9.53 16.03 9.97" stroke-width="1.392"/><path d="M12.01 12.12Q12.1 15.28 12.01 18.43" stroke-width="1.52"/><path d="M7.71 20.49Q12.03 20.69 16.35 20.65" stroke-width="1.824"/></svg>

Pencil variant

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

<Trophy size={32} pencil />

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

02How it's drawn

The recipe for trophy

Trophy is not stored as a drawing. It is a recipe of 1 closed shape, 2 polylines and 2 lines 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 7 4 17 4 15.5 12.5 8.5 12.5;
P 7 5.5 3.5 5.5 4 9 8 10;
P 17 5.5 20.5 5.5 20 9 16 10;
L 12 12.5 12 18;
L 8 20.5 16 20.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 trophy. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil