Phaser API Documentation

  Version: 

Member of: Phaser.Geom.Line

<static> Offset(line, x, y)

Description:

Offset a line by the given amount.

Parameters:

name type description
line Phaser.Geom.Line

The line to offset.

x number

The horizontal offset to add to the line.

y number

The vertical offset to add to the line.

Returns:
Description:

The offset line.

Since: 3.0.0
Source: src/geom/line/Offset.js (Line 7)