# Dogs The dog next to [Cats](https://www.dicebear.com/styles/cats/), in the same framing and with the same shadows. There are no breeds: every dog is a mongrel of eight ears, six muzzles and a coat of dark and white markings, so a bearded dog with one ear up turns up as often as a beagle. Most wear a collar, a tag or a bandana, and some have a ball, a stick, a bone or a frisbee lying next to them. With the animation on, the head tilts and the tail wags. - **Style name:** `dogs` - **Category:** Characters - **Animated:** yes - **Creator:** DiceBear (https://www.dicebear.com) - **Source:** https://www.dicebear.com - **License:** CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/) ## Usage Every library below produces the same SVG for the same seed and options. HTTP API: ``` https://api.dicebear.com/11.x/dogs/svg?seed=John ``` JavaScript: ``` npm install @dicebear/core @dicebear/styles --save ``` ```js import { Style, Avatar } from '@dicebear/core'; import definition from '@dicebear/styles/dogs.json' with { type: 'json' }; const style = new Style(definition); const avatar = new Avatar(style, { seed: 'John' }); const svg = avatar.toString(); ``` PHP: ``` composer require dicebear/core dicebear/styles ``` ```php 'John']); $svg = (string) $avatar; ``` Python: ``` pip install dicebear-core dicebear-styles ``` ```python from importlib.resources import files from dicebear import Avatar, Style style = Style.from_json( files("dicebear_styles").joinpath("dogs.json").read_text("utf-8") ) avatar = Avatar(style, {"seed": "John"}) svg = avatar.to_string() ``` Rust: ``` cargo add dicebear-core serde_json cargo add dicebear-styles --features dogs ``` ```rust use dicebear_core::{Avatar, Style}; use serde_json::json; let style = Style::from_str(dicebear_styles::DOGS)?; let avatar = Avatar::new(&style, json!({ "seed": "John" }))?; let svg = avatar.to_svg(); ``` Go: ``` go get github.com/dicebear/dicebear-go/v11 go get github.com/dicebear/styles/v11 ``` ```go import ( dicebear "github.com/dicebear/dicebear-go/v11" "github.com/dicebear/styles/v11" ) style, _ := dicebear.NewStyle([]byte(styles.Dogs)) avatar, _ := dicebear.NewAvatar(style, map[string]any{"seed": "John"}) svg := avatar.SVG() ``` Dart: ``` dart pub add dicebear_core dicebear_styles ``` ```dart import 'package:dicebear_core/dicebear_core.dart'; import 'package:dicebear_styles/dogs.dart'; final style = Style.parse(dogs); final avatar = Avatar(style, {'seed': 'John'}); final svg = avatar.svg; ``` C#: ``` dotnet add package DiceBear.Core dotnet add package DiceBear.Styles ``` ```csharp using System.Text.Json.Nodes; using DiceBear; var style = Style.Parse(Styles.Dogs); var avatar = new Avatar(style, new JsonObject { ["seed"] = "John" }); var svg = avatar.ToSvg(); ``` CLI: ``` npm install --global dicebear ``` ``` dicebear create dogs --seed "Felix" ``` ## Presets 17 ready-made option sets for this style. Each is a plain set of render options: pass it to any of the libraries or send it as HTTP-API query parameters. You do not need to install anything for them, and any option a preset leaves out keeps varying with the seed. - **Puppies:** Round muzzles and big glossy or button eyes. - **Floppy Ears:** Ears that hang: drop, long and curly. - **Pointed Ears:** Ears that stand: prick and bat. - **One Up, One Down:** One ear stands, the other tips over. - **Long Noses:** The long muzzle with the nose low on every dog. - **Flat Faces:** Short or heavy muzzles under small ears. - **Scruffy:** Beards, fluffy muzzles and hair on every head. - **Tricolour:** Dark sides or a cap, and a white blaze between them. - **Plain Coats:** No markings at all. - **Playtime:** A toy on the ground next to every dog. - **Bandanas:** A bandana around every neck. - **Bare Neck:** No collar on anyone. - **Indoors:** Living room or kitchen behind the dog. - **Outdoors:** Meadow, forest, yard, street or beach behind the dog. - **Studio:** No scene, a flat pale ground instead. - **Greyscale:** Grey fur on a grey ground, scene and toys off. - **Animated:** Turns the style's built-in animation on. The full option set of each one is at https://www.dicebear.com/styles/dogs/presets/index.md. ## Options Every option below works in all libraries. The public HTTP API takes all of them as query parameters except `idRandomization`, `fontFamily`, `fontWeight` and `title`. The ones built from a component name (`Variant`, `Probability`) or from a color group (`Color`, `ColorFill`, `ColorFillStops`, `ColorAngle`, `ColorOrder`) belong to this style; the rest are [core options](https://www.dicebear.com/customize/options/) that every style accepts. | Option | Type | Values | | --- | --- | --- | | `seed` | string | | | `size` | number | 1 to 4096 | | `idRandomization` | boolean | | | `title` | string | | | `flip` | enum (array allowed) | `none`, `horizontal`, `vertical`, `both` | | `fontFamily` | string (array allowed) | | | `fontWeight` | number (array allowed) | 1 to 1000 | | `scale` | range | 0 to 10 | | `borderRadius` | range | 0 to 50 | | `rotate` | range | -360 to 360 | | `translateX` | range | -1000 to 1000 | | `translateY` | range | -1000 to 1000 | | `blazeVariant` | enum (array allowed) | `bib`, `brows`, `star`, `stripe` | | `blazeProbability` | number | 0 to 100 | | `bodyVariant` | enum (array allowed) | `chest`, `chestSocks`, `plain`, `socks` | | `bodyProbability` | number | 0 to 100 | | `cheeksVariant` | enum (array allowed) | `blush` | | `cheeksProbability` | number | 0 to 100 | | `collarVariant` | enum (array allowed) | `bandana`, `bone`, `plain`, `tag` | | `collarProbability` | number | 0 to 100 | | `earsVariant` | enum (array allowed) | `bat`, `button`, `drop`, `half`, `long`, `pompon`, `prick`, `small` | | `earsProbability` | number | 0 to 100 | | `eyesVariant` | enum (array allowed) | `button`, `happy`, `puppy`, `relaxed`, `round`, `sideeye`, `sleepy`, `squint`, `up`, `wink` | | `eyesProbability` | number | 0 to 100 | | `hairVariant` | enum (array allowed) | `bangs`, `topknot`, `tuft` | | `hairProbability` | number | 0 to 100 | | `mouthVariant` | enum (array allowed) | `grin`, `line`, `lolling`, `ooh`, `pant`, `smile`, `tongue` | | `mouthProbability` | number | 0 to 100 | | `muzzleVariant` | enum (array allowed) | `beard`, `fluffy`, `long`, `round`, `short`, `wide` | | `muzzleProbability` | number | 0 to 100 | | `patternVariant` | enum (array allowed) | `cap`, `half`, `patch`, `sides`, `spots` | | `patternProbability` | number | 0 to 100 | | `sceneVariant` | enum (array allowed) | `beach`, `forest`, `kitchen`, `livingRoom`, `meadow`, `street`, `yard` | | `sceneProbability` | number | 0 to 100 | | `tailVariant` | enum (array allowed) | `curlLeft`, `curlRight`, `plumeLeft`, `plumeRight`, `stubLeft`, `stubRight`, `upLeft`, `upRight` | | `tailProbability` | number | 0 to 100 | | `toyVariant` | enum (array allowed) | `ball`, `bone`, `frisbee`, `stick` | | `toyProbability` | number | 0 to 100 | | `blushColor` | color (array allowed) | Hex color, `#` optional | | `blushColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `blushColorFillStops` | range | | | `blushColorAngle` | range | -360 to 360 | | `blushColorOrder` | enum | `random`, `fixed` | | `collarColor` | color (array allowed) | Hex color, `#` optional | | `collarColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `collarColorFillStops` | range | | | `collarColorAngle` | range | -360 to 360 | | `collarColorOrder` | enum | `random`, `fixed` | | `furColor` | color (array allowed) | Hex color, `#` optional | | `furColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `furColorFillStops` | range | | | `furColorAngle` | range | -360 to 360 | | `furColorOrder` | enum | `random`, `fixed` | | `inkColor` | color (array allowed) | Hex color, `#` optional | | `inkColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `inkColorFillStops` | range | | | `inkColorAngle` | range | -360 to 360 | | `inkColorOrder` | enum | `random`, `fixed` | | `tongueColor` | color (array allowed) | Hex color, `#` optional | | `tongueColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `tongueColorFillStops` | range | | | `tongueColorAngle` | range | -360 to 360 | | `tongueColorOrder` | enum | `random`, `fixed` | | `backgroundColor` | color (array allowed) | Hex color, `#` optional | | `backgroundColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `backgroundColorFillStops` | range | | | `backgroundColorAngle` | range | -360 to 360 | | `backgroundColorOrder` | enum | `random`, `fixed` | | `tags` | enum (array allowed) | `accessory`, `mood:negative`, `mood:positive` (further values allowed) | | `animation` | boolean | | | `animationSpeed` | range | 0.1 to 10 | | `animationDelay` | range | -3600 to 3600 | | `animationRespectReducedMotion` | boolean | | | `tiltAnimation` | boolean | | | `tiltAnimationSpeed` | range | 0.1 to 10 | | `tiltAnimationDelay` | range | -3600 to 3600 | | `wagAnimation` | boolean | | | `wagAnimationSpeed` | range | 0.1 to 10 | | `wagAnimationDelay` | range | -3600 to 3600 | The same table is available as JSON at `https://api.dicebear.com/11.x/dogs/options.json`, and the raw definition at `https://api.dicebear.com/11.x/dogs/definition.json`.