Skip to content
PixiKit

Dot Mark

A logo, word or image drawn as dots that light up under the pointer and ripple when pressed.

pixikit.com/docs/effects/dot-mark

Customize

Shape
Grid
Spacing6.0%
Dot size8px
Dot shape
Color
Glow color
Background
Spotlight
Spotlight radius24%
Spotlight strength100%
Ripple
Ripple speed4ms
Bloom
Bloom size240%
Bloom duration1.4s
Intro wave
Size280px
Interactive

Props

26
NameTypeDefaultDescription
shape"logo" | "text" | "svg" | "circle" | "grid" | "single" | "points""logo"What the dots draw: the PixiKit logo, a word, an image, a circle, a plain grid, one dot or your own points.
textstring"Pixi"The word drawn when the shape is text.
srcstringNoneThe SVG or image drawn when the shape is svg; its visible pixels become dots. The logo shows until it loads.
points[number, number][]NoneYour own dots when the shape is points, each [x, y] from 0 to 100.
grid"hex" | "square""hex"How the dots line up: rows offset by half a step, or a square grid.
spacingnumber6The distance between dots, in % of the stage's height.
dotSizenumber8Each dot's size in pixels.
dotShape"circle" | "square""circle"Round or square dots.
colorstring"currentColor"The dots at rest. `currentColor` follows the text colour.
glowColorstring"#2563eb"The colour the spotlight, ripple and bloom light the dots in.
backgroundstring"transparent"The stage behind the dots.
spotlightbooleantrueLight the dots near the pointer.
spotlightRadiusnumber24How far the spotlight reaches, in % of the stage's height.
spotlightStrengthnumber100How strongly the spotlight tints and grows the dots under it, in %.
ripplebooleantrueA press sends a wave through the dots.
rippleSpeednumber4The wave's delay per unit of distance, in ms; lower is faster.
bloombooleantrueA press lets a soft glow bloom from the point pressed.
bloomSizenumber240How wide the bloom grows, in % of the stage's height.
bloomDurationnumber1.4How long the bloom lasts, in seconds.
introWavebooleantrueOne wave plays when the mark first shows.
sizenumber240The stage's height in pixels. A word or an image widens the stage to its own shape.
interactivebooleantrueAnswer the pointer and the keyboard. Off, the mark is a still image.
ariaLabelstringNoneWhat screen readers announce. Defaults to the text, else "Dot mark".
onDotClick(dot: DotMarkDot) => voidNoneCalled on a press with the dot nearest to it.
classNamestringNone
styleCSSPropertiesNone

Related