Phaser API Documentation

  Version: 
<static> fromJSON(data)

Description:

Creates a curve from a JSON object, e. g. created by toJSON.

Parameters:

name type description
data Phaser.Types.Curves.JSONCurve

The JSON object containing this curve data.

Returns:
Description:

The created curve instance.

Since: 3.2.0