Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bar

Decribes a meter bar to display in a user interface. Also used for the laser guns on the spaceship

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • _position: Vector
    • _size: Vector
    • Default value _maxValue: number = 1

    Returns Bar

Properties

fillStyle

fillStyle: string = "green"

maxValue

maxValue: number

position

position: Vector

size

size: Vector = new Vector(100, 10)

strokeStyle

strokeStyle: string = "white"

Methods

draw

  • draw(_value: number, _fillStyle?: undefined | string, _strokeStyle?: undefined | string): void
  • Parameters

    • _value: number
    • Optional _fillStyle: undefined | string
    • Optional _strokeStyle: undefined | string

    Returns void

Generated using TypeDoc