Class b2Color

Color for debug drawing. Each value has the range [0, 1].

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(rr: number, gg: number, bb: number): b2Color

Constructor

Parameters

  • rr: number

    Red value

  • gg: number

    Green value

  • bb: number

    Blue value

Returns

b2Color

Properties

public b: number

Blue

public color: number

RGB color as hex.

type

uint

public g: number

Green

public r: number

Red

Methods

public Set(rr: number, gg: number, bb: number)

Sets the Color to new RGB values.

Parameters

  • rr: number

    Red value

  • gg: number

    Green value

  • bb: number

    Blue value