# Gaze 3D [Gaze](https://www.dicebear.com/styles/gaze/) with depth: the eleven silhouettes are slabs with a visible side, and the two eyes hover in front of them and cast a shadow. Four poses, each to the left or to the right. With the animation on, the slab glances to the other side and spins once around, while the eyes float and blink. - **Style name:** `gaze-3d` - **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/gaze-3d/svg?seed=John ``` JavaScript: ``` npm install @dicebear/core @dicebear/styles --save ``` ```js import { Style, Avatar } from '@dicebear/core'; import definition from '@dicebear/styles/gaze-3d.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("gaze-3d.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 gaze-3d ``` ```rust use dicebear_core::{Avatar, Style}; use serde_json::json; let style = Style::from_str(dicebear_styles::GAZE_3D)?; 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.Gaze3d)) 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/gaze_3d.dart'; final style = Style.parse(gaze3d); 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.Gaze3d); var avatar = new Avatar(style, new JsonObject { ["seed"] = "John" }); var svg = avatar.ToSvg(); ``` CLI: ``` npm install --global dicebear ``` ``` dicebear create gaze-3d --seed "Felix" ``` ## Presets 11 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. - **Animated:** Turns the style's built-in animation on. - **Happy:** Smiling eyes on warm colors. - **Angular:** Polygons in slate, pine and leather. - **Round:** Circles, eggs and pills in soft tones. - **Nearly Frontal:** The smallest of the four turns. - **Far Turned:** The widest turns, all facing right, on pale slabs. - **One Color:** A red slab for everyone. - **Electric:** Neon slabs on deep indigo. - **Dark:** Near black ground for dark interfaces. - **Sepia:** Everything in warm browns. - **Greyscale:** Everything in grays. The full option set of each one is at https://www.dicebear.com/styles/gaze-3d/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 | | `eyesVariant` | enum (array allowed) | `bars`, `beans`, `big`, `dots`, `grin`, `happy`, `shine`, `small`, `squint`, `tall`, `wide` | | `eyesProbability` | number | 0 to 100 | | `facingVariant` | enum (array allowed) | `left`, `right` | | `facingProbability` | number | 0 to 100 | | `shapeVariant` | enum (array allowed) | `arch`, `circle`, `column`, `diamond`, `egg`, `hexagon`, `octagon`, `pentagon`, `pill`, `square`, `triangle` | | `shapeProbability` | number | 0 to 100 | | `turnVariant` | enum (array allowed) | `full`, `half`, `slight`, `wide` | | `turnProbability` | number | 0 to 100 | | `bodyColor` | color (array allowed) | Hex color, `#` optional | | `bodyColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `bodyColorFillStops` | range | | | `bodyColorAngle` | range | -360 to 360 | | `bodyColorOrder` | enum | `random`, `fixed` | | `glintColor` | color (array allowed) | Hex color, `#` optional | | `glintColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `glintColorFillStops` | range | | | `glintColorAngle` | range | -360 to 360 | | `glintColorOrder` | 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` | | `sideColor` | color (array allowed) | Hex color, `#` optional | | `sideColorFill` | enum (array allowed) | `solid`, `linear`, `radial` | | `sideColorFillStops` | range | | | `sideColorAngle` | range | -360 to 360 | | `sideColorOrder` | 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` | | `animation` | boolean | | | `animationSpeed` | range | 0.1 to 10 | | `animationDelay` | range | -3600 to 3600 | | `animationRespectReducedMotion` | boolean | | | `blinkAnimation` | boolean | | | `blinkAnimationSpeed` | range | 0.1 to 10 | | `blinkAnimationDelay` | range | -3600 to 3600 | | `hopAnimation` | boolean | | | `hopAnimationSpeed` | range | 0.1 to 10 | | `hopAnimationDelay` | range | -3600 to 3600 | | `hoverAnimation` | boolean | | | `hoverAnimationSpeed` | range | 0.1 to 10 | | `hoverAnimationDelay` | range | -3600 to 3600 | | `lookAnimation` | boolean | | | `lookAnimationSpeed` | range | 0.1 to 10 | | `lookAnimationDelay` | range | -3600 to 3600 | | `turnAnimation` | boolean | | | `turnAnimationSpeed` | range | 0.1 to 10 | | `turnAnimationDelay` | range | -3600 to 3600 | The same table is available as JSON at `https://api.dicebear.com/11.x/gaze-3d/options.json`, and the raw definition at `https://api.dicebear.com/11.x/gaze-3d/definition.json`.