Class cc.Lens3D

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Lens3D action

Method Summary

Class Detail

cc.Lens3D()
cc.Lens3D action

Method Detail

  • <static> {cc.Lens3D} cc.Lens3D.create(duration, gridSize, position, radius)
    creates the action with center position, radius, a grid size and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {cc.Point} position
    {Number} radius
    Returns:
    {cc.Lens3D}
  • {Number} getLensEffect()
    Get lens center position
    Returns:
    {Number}
  • {cc.Point} getPosition()
    get Position
    Returns:
    {cc.Point}
  • {Boolean} initWithDuration(duration, gridSize, position, radius)
    initializes the action with center position, radius, a grid size and duration
    Parameters:
    {Number} duration
    {cc.Size} gridSize
    {cc.Point} position
    {Number} radius
    Returns:
    {Boolean}
  • setConcave(concave)
    Set whether lens is concave
    Parameters:
    {Boolean} concave
  • setLensEffect(lensEffect)
    Set lens center position
    Parameters:
    {Number} lensEffect
  • setPosition(position)
    set Position
    Parameters:
    {cc.Point} position