gentleface

Gentleface › Games & sports › tic-tac-toe

tic-tac-toe icon

Tic tac toe: tic tac toe, noughts and crosses. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated tic-tac-toe-play · line-round

The marks are wiped off the board, the last move first. Then the game is played again: the cross is written in two strokes and the nought is drawn round after it.

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.25 s to 2.35 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="M11.5 2.793L13.146 1.146C13.246 1.047 13.364 0.997 13.5 0.997C13.636 0.997 13.754 1.047 13.854 1.146C13.951 1.244 14 1.362 14 1.5C14 1.638 13.951 1.756 13.854 1.854L12.207 3.5L13.854 5.146C13.951 5.244 14 5.362 14 5.5C14 5.638 13.951 5.756 13.854 5.854C13.754 5.953 13.636 6.003 13.5 6.003C13.364 6.003 13.246 5.953 13.146 5.854L11.5 4.207L9.854 5.854C9.754 5.953 9.636 6.003 9.5 6.003C9.364 6.003 9.246 5.953 9.146 5.854C9.049 5.756 9 5.638 9 5.5C9 5.362 9.049 5.244 9.146 5.146L10.793 3.5L9.146 1.854C9.049 1.756 9 1.638 9 1.5C9 1.362 9.049 1.244 9.146 1.146C9.246 1.047 9.364 0.997 9.5 0.997C9.636 0.997 9.754 1.047 9.854 1.146L11.5 2.793ZM13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L8 8L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 8L1.5 8C1.359 8 1.241 7.952 1.144 7.856C1.048 7.759 1 7.641 1 7.5C1 7.359 1.048 7.241 1.144 7.144C1.241 7.048 1.359 7 1.5 7L7 7L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144ZM1.176 10.58C1.303 10.259 1.488 9.976 1.732 9.732C1.976 9.488 2.259 9.303 2.58 9.176C2.875 9.059 3.182 9 3.5 9C3.818 9 4.125 9.059 4.42 9.176C4.741 9.303 5.024 9.488 5.268 9.732C5.512 9.976 5.697 10.259 5.824 10.58C5.941 10.875 6 11.182 6 11.5C6 11.818 5.941 12.125 5.824 12.42C5.697 12.741 5.512 13.024 5.268 13.268C5.024 13.512 4.741 13.697 4.42 13.824C4.125 13.941 3.818 14 3.5 14C3.182 14 2.875 13.941 2.58 13.824C2.259 13.697 1.976 13.512 1.732 13.268C1.488 13.024 1.303 12.741 1.176 12.42C1.059 12.125 1 11.818 1 11.5C1 11.182 1.059 10.875 1.176 10.58ZM2.105 12.052C2.182 12.245 2.293 12.414 2.439 12.561C2.586 12.707 2.755 12.818 2.948 12.895C3.125 12.965 3.309 13 3.5 13C3.691 13 3.875 12.965 4.052 12.895C4.245 12.818 4.414 12.707 4.561 12.561C4.707 12.414 4.818 12.245 4.895 12.052C4.965 11.875 5 11.691 5 11.5C5 11.309 4.965 11.125 4.895 10.948C4.818 10.755 4.707 10.586 4.561 10.439C4.414 10.293 4.245 10.182 4.052 10.105C3.875 10.035 3.691 10 3.5 10C3.309 10 3.125 10.035 2.948 10.105C2.755 10.182 2.586 10.293 2.439 10.439C2.293 10.586 2.182 10.755 2.105 10.948C2.035 11.125 2 11.309 2 11.5C2 11.691 2.035 11.875 2.105 12.052Z"/></svg>
React
// Gentleface "tic-tac-toe" (line-round), MIT. https://gentleface.com/icons/tic-tac-toe
import type { SVGProps } from 'react';

export function TicTacToeIcon(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="M11.5 2.793L13.146 1.146C13.246 1.047 13.364 0.997 13.5 0.997C13.636 0.997 13.754 1.047 13.854 1.146C13.951 1.244 14 1.362 14 1.5C14 1.638 13.951 1.756 13.854 1.854L12.207 3.5L13.854 5.146C13.951 5.244 14 5.362 14 5.5C14 5.638 13.951 5.756 13.854 5.854C13.754 5.953 13.636 6.003 13.5 6.003C13.364 6.003 13.246 5.953 13.146 5.854L11.5 4.207L9.854 5.854C9.754 5.953 9.636 6.003 9.5 6.003C9.364 6.003 9.246 5.953 9.146 5.854C9.049 5.756 9 5.638 9 5.5C9 5.362 9.049 5.244 9.146 5.146L10.793 3.5L9.146 1.854C9.049 1.756 9 1.638 9 1.5C9 1.362 9.049 1.244 9.146 1.146C9.246 1.047 9.364 0.997 9.5 0.997C9.636 0.997 9.754 1.047 9.854 1.146L11.5 2.793ZM13.856 7.144C13.952 7.241 14 7.359 14 7.5C14 7.641 13.952 7.759 13.856 7.856C13.759 7.952 13.641 8 13.5 8L8 8L8 13.5C8 13.641 7.952 13.759 7.856 13.856C7.759 13.952 7.641 14 7.5 14C7.359 14 7.241 13.952 7.144 13.856C7.048 13.759 7 13.641 7 13.5L7 8L1.5 8C1.359 8 1.241 7.952 1.144 7.856C1.048 7.759 1 7.641 1 7.5C1 7.359 1.048 7.241 1.144 7.144C1.241 7.048 1.359 7 1.5 7L7 7L7 1.5C7 1.359 7.048 1.241 7.144 1.144C7.241 1.048 7.359 1 7.5 1C7.641 1 7.759 1.048 7.856 1.144C7.952 1.241 8 1.359 8 1.5L8 7L13.5 7C13.641 7 13.759 7.048 13.856 7.144ZM1.176 10.58C1.303 10.259 1.488 9.976 1.732 9.732C1.976 9.488 2.259 9.303 2.58 9.176C2.875 9.059 3.182 9 3.5 9C3.818 9 4.125 9.059 4.42 9.176C4.741 9.303 5.024 9.488 5.268 9.732C5.512 9.976 5.697 10.259 5.824 10.58C5.941 10.875 6 11.182 6 11.5C6 11.818 5.941 12.125 5.824 12.42C5.697 12.741 5.512 13.024 5.268 13.268C5.024 13.512 4.741 13.697 4.42 13.824C4.125 13.941 3.818 14 3.5 14C3.182 14 2.875 13.941 2.58 13.824C2.259 13.697 1.976 13.512 1.732 13.268C1.488 13.024 1.303 12.741 1.176 12.42C1.059 12.125 1 11.818 1 11.5C1 11.182 1.059 10.875 1.176 10.58ZM2.105 12.052C2.182 12.245 2.293 12.414 2.439 12.561C2.586 12.707 2.755 12.818 2.948 12.895C3.125 12.965 3.309 13 3.5 13C3.691 13 3.875 12.965 4.052 12.895C4.245 12.818 4.414 12.707 4.561 12.561C4.707 12.414 4.818 12.245 4.895 12.052C4.965 11.875 5 11.691 5 11.5C5 11.309 4.965 11.125 4.895 10.948C4.818 10.755 4.707 10.586 4.561 10.439C4.414 10.293 4.245 10.182 4.052 10.105C3.875 10.035 3.691 10 3.5 10C3.309 10 3.125 10.035 2.948 10.105C2.755 10.182 2.586 10.293 2.439 10.439C2.293 10.586 2.182 10.755 2.105 10.948C2.035 11.125 2 11.309 2 11.5C2 11.691 2.035 11.875 2.105 12.052Z" />
    </svg>
  );
}
Vue
Vue: see /icons/tic-tac-toe.md
Svelte
Svelte: see /icons/tic-tac-toe.md
HTML img
HTML img: see /icons/tic-tac-toe.md
CSS
CSS: see /icons/tic-tac-toe.md
Data URL
Data URL: see /icons/tic-tac-toe.md
Sprite
Sprite: see /icons/tic-tac-toe.md
SwiftUI
SwiftUI: see /icons/tic-tac-toe.md
Compose
Compose: see /icons/tic-tac-toe.md
Android XML
Android XML: see /icons/tic-tac-toe.md
Flutter
Flutter: see /icons/tic-tac-toe.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 { TicTacToeIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
tic tac toe, noughts and crosses
Tags
tic-tac-toe, noughts-and-crosses, tic-tac, xo, x-and-o, grid, board, casual-game, puzzle, game
Category
Games & sports
Component name
TicTacToeIcon
History
  • 20 px drawn, 24 px drawn, added, released in 0.4.0
Since
version 0.4.0

More games & sports icons

For agents

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