Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PIXISprite

A pixi-factory sprite environment

import * as PIXI from 'pixi.js';
import { Sprite, Utils } from 'pixi-factory';
// ...
function setup() {
  const sprite: Utils.PIXISprite = new Sprite().create(new PIXI.Sprite(resources.example.texture));
  // ...
}

Hierarchy

Properties

Optional base

A base properties

Optional centerX

centerX: number

A center anchor sprite x

Optional centerY

centerY: number

A center anchor sprite y

Optional circular

circular: number

A circular sprite value

Optional gx

gx: number

A global x position

Optional gy

gy: number

A global y position

Optional halfHeight

halfHeight: number

A half height sprite

Optional halfWidth

halfWidth: number

A half width sprite

Optional radius

radius: number

A radius for sprite

Optional velocity

A velocity properties

Optional xAnchorOffset

xAnchorOffset: number

A anchor x

Optional yAnchorOffset

yAnchorOffset: number

A anchor y

Generated using TypeDoc