Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Line

<static> fromJSON(data)

Description:

Configures this line from a JSON representation.

Parameters:

name type description
data Phaser.Types.Curves.JSONCurve

The JSON object containing this curve data.

Returns:
Description:

A new LineCurve object.

Examples:
Since: 3.0.0
Source: src/curves/LineCurve.js (Line 280)