gentleface

Gentleface › Games & sports › dice

dice icon

Dice: dice, die, roll dice, chance. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated dice-tumble · line-round

The die tumbles a quarter turn at a time with a small hop on each, a new face coming in from the left as the old one narrows to the right. It runs 5, 3, 2, 4, slows, and lands on the drawn five.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 2.85 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414ZM3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707ZM5.707 4.293C5.902 4.488 6 4.724 6 5C6 5.276 5.902 5.512 5.707 5.707C5.512 5.902 5.276 6 5 6C4.724 6 4.488 5.902 4.293 5.707C4.098 5.512 4 5.276 4 5C4 4.724 4.098 4.488 4.293 4.293C4.488 4.098 4.724 4 5 4C5.276 4 5.512 4.098 5.707 4.293ZM11.707 4.293C11.902 4.488 12 4.724 12 5C12 5.276 11.902 5.512 11.707 5.707C11.512 5.902 11.276 6 11 6C10.724 6 10.488 5.902 10.293 5.707C10.098 5.512 10 5.276 10 5C10 4.724 10.098 4.488 10.293 4.293C10.488 4.098 10.724 4 11 4C11.276 4 11.512 4.098 11.707 4.293ZM7.293 7.293C7.488 7.098 7.724 7 8 7C8.276 7 8.512 7.098 8.707 7.293C8.902 7.488 9 7.724 9 8C9 8.276 8.902 8.512 8.707 8.707C8.512 8.902 8.276 9 8 9C7.724 9 7.488 8.902 7.293 8.707C7.098 8.512 7 8.276 7 8C7 7.724 7.098 7.488 7.293 7.293ZM5.707 10.293C5.902 10.488 6 10.724 6 11C6 11.276 5.902 11.512 5.707 11.707C5.512 11.902 5.276 12 5 12C4.724 12 4.488 11.902 4.293 11.707C4.098 11.512 4 11.276 4 11C4 10.724 4.098 10.488 4.293 10.293C4.488 10.098 4.724 10 5 10C5.276 10 5.512 10.098 5.707 10.293ZM10.293 10.293C10.488 10.098 10.724 10 11 10C11.276 10 11.512 10.098 11.707 10.293C11.902 10.488 12 10.724 12 11C12 11.276 11.902 11.512 11.707 11.707C11.512 11.902 11.276 12 11 12C10.724 12 10.488 11.902 10.293 11.707C10.098 11.512 10 11.276 10 11C10 10.724 10.098 10.488 10.293 10.293Z"/></svg>
React
// Gentleface "dice" (line-round), MIT. https://gentleface.com/icons/dice
import type { SVGProps } from 'react';

export function DiceIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L12 2C12.254 2 12.5 2.047 12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414ZM3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707ZM5.707 4.293C5.902 4.488 6 4.724 6 5C6 5.276 5.902 5.512 5.707 5.707C5.512 5.902 5.276 6 5 6C4.724 6 4.488 5.902 4.293 5.707C4.098 5.512 4 5.276 4 5C4 4.724 4.098 4.488 4.293 4.293C4.488 4.098 4.724 4 5 4C5.276 4 5.512 4.098 5.707 4.293ZM11.707 4.293C11.902 4.488 12 4.724 12 5C12 5.276 11.902 5.512 11.707 5.707C11.512 5.902 11.276 6 11 6C10.724 6 10.488 5.902 10.293 5.707C10.098 5.512 10 5.276 10 5C10 4.724 10.098 4.488 10.293 4.293C10.488 4.098 10.724 4 11 4C11.276 4 11.512 4.098 11.707 4.293ZM7.293 7.293C7.488 7.098 7.724 7 8 7C8.276 7 8.512 7.098 8.707 7.293C8.902 7.488 9 7.724 9 8C9 8.276 8.902 8.512 8.707 8.707C8.512 8.902 8.276 9 8 9C7.724 9 7.488 8.902 7.293 8.707C7.098 8.512 7 8.276 7 8C7 7.724 7.098 7.488 7.293 7.293ZM5.707 10.293C5.902 10.488 6 10.724 6 11C6 11.276 5.902 11.512 5.707 11.707C5.512 11.902 5.276 12 5 12C4.724 12 4.488 11.902 4.293 11.707C4.098 11.512 4 11.276 4 11C4 10.724 4.098 10.488 4.293 10.293C4.488 10.098 4.724 10 5 10C5.276 10 5.512 10.098 5.707 10.293ZM10.293 10.293C10.488 10.098 10.724 10 11 10C11.276 10 11.512 10.098 11.707 10.293C11.902 10.488 12 10.724 12 11C12 11.276 11.902 11.512 11.707 11.707C11.512 11.902 11.276 12 11 12C10.724 12 10.488 11.902 10.293 11.707C10.098 11.512 10 11.276 10 11C10 10.724 10.098 10.488 10.293 10.293Z" />
    </svg>
  );
}
Vue
Vue: see /icons/dice.md
Svelte
Svelte: see /icons/dice.md
HTML img
HTML img: see /icons/dice.md
CSS
CSS: see /icons/dice.md
Data URL
Data URL: see /icons/dice.md
Sprite
Sprite: see /icons/dice.md
SwiftUI
SwiftUI: see /icons/dice.md
Compose
Compose: see /icons/dice.md
Android XML
Android XML: see /icons/dice.md
Flutter
Flutter: see /icons/dice.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { DiceIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
dice, die, roll dice, chance, dice roll
Alternatives
Also fits
  • gamepad: board or tabletop games
  • board game: dice or chance
  • casino: dice or chance
  • shuffle: a random pick or a roll of the dice (roll-dice)
  • luck: chance or randomness
Tags
dice, die, roll, chance, luck, board-game, tabletop, game, random
Category
Games & sports
Component name
DiceIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

More games & sports icons

For agents

Metadata: /icons/dice.json · Markdown: /icons/dice.md · SVG: https://gentleface.com/svg/{style}/16/dice.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/dice.png