CPSlideOutShader

Companion object with utility methods.

Companion:
class
Source:
CPSlideOutShader.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def sigmoid(dir: CPSlideDirection, entireFrame: Boolean, durMs: Long, bgPx: CPPixel, onFinish: CPSceneObjectContext => Unit, autoStart: Boolean, skip: (CPZPixel, Int, Int) => Boolean): CPSlideOutShader

Creates new slide out shader with sigmoid-based color balance function.

Creates new slide out shader with sigmoid-based color balance function.

Value parameters:
autoStart

Whether to start shader right away. Default value is true.

bgPx

Background pixel to fade in from.

dir

Slide direction as defined by CPSlideDirection.

durMs

Duration of the effect in milliseconds.

entireFrame

Whether apply to the entire camera frame or just the object this shader is attached to.

onFinish

Optional callback to call when this shader finishes. Default is a no-op.

skip

Predicate allowing to skip certain pixel from the shader. Typically used to skip background or certain Z-index. Default predicate returns false for all pixels.

Source:
CPSlideOutShader.scala