Skip to content
pixi-silk
GitHub repository
Interface

GridLevelOptions

import type { GridLevelOptions } from 'pixi-silk/ui/grid';

Options of gridLevels.

Extended by#

Properties#

PropertyTypeDescriptionDefined in
alpha?numberOpacity of a line at full strength, 0..1. Default 0.1.ui/grid.ts:29
fade?[number, number]Screen spacing in CSS pixels where a level starts to show and where it reaches full strength. Default [6, 120].ui/grid.ts:31
ratio?numberEach level is this many times the one below. Default 10, at least 2.ui/grid.ts:27
unit?numberFinest step, in world units. Default 1, a pixel grid at 100%. Must be above 0.ui/grid.ts:25