UNPKG

@moderrkowo/jsgl

Version:

Client-side JavaScript library for creating web 2D games. Focusing at objective game.

46 lines (45 loc) 976 B
import { RotationStyle } from '../enums/RotationStyle'; import { Shadow } from './Shadow'; /** * Represents renderer properties * @group Settings */ export type DrawSettings = { /** * Should the shape have a fill? */ fill?: boolean; /** * Shape fill color */ color?: string | CanvasGradient | CanvasPattern; /** * Should the shape have a border? */ border?: boolean; /** * Shape border color */ borderColor?: string | CanvasGradient | CanvasPattern; /** * Shape border size */ borderSize?: number; /** * Rotation of shape in degrees */ angle?: number; /** * Shadow settings for shape */ shadow?: Shadow; /** * Alpha decimal midpoint */ alpha?: number; /** * Rotation style */ rotationStyle?: RotationStyle; }; export declare const defaultDrawSettings: DrawSettings;