Phaser API Documentation

  Version: 

Member of: Phaser.FX.Gradient

size: number

Description:

Sets how many 'chunks' the gradient is divided in to, as spread over the entire height of the texture. Leave this at zero for a smooth gradient, or set to a higher number to split the gradient into that many sections, giving a more banded 'retro' effect.

Type:
number
Since: 3.60.0
Source: src/fx/Gradient.js (Line 73)