Plankton::Texture
Constructors
Instance methods
color(r : Scalar = 1.0, g : Scalar = 1.0, b : Scalar = 1.0, a : Scalar = 1.0) : Texture
Multiply RGBA channels.
graph
Sourceid
Sourceluma(threshold : Scalar = 0.5, tolerance : Scalar = 0.1) : Texture
Turn luminance into an alpha mask.
modulate(other : Texture, amount : Scalar = 0.1) : Texture
Warp coordinates using centered red/green channels.
modulate_pixelate(other : Texture, multiple : Scalar = 10.0, offset : Scalar = 3.0) : Texture
Modulate the pixel grid resolution.
modulate_rotate(other : Texture, amount : Scalar = 1.0, offset : Scalar = 0.0) : Texture
Rotate coordinates using another texture.
modulate_scale(other : Texture, amount : Scalar = 0.5, offset : Scalar = 1.0) : Texture
Scale coordinates using another texture.
out(output : Output = Output.new(0)) : Texture
Sourceposterize(bins : Scalar = 3.0, gamma : Scalar = 1.0) : Texture
Reduce the number of color levels.
rotate(angle : Scalar = 0.0, speed : Scalar = 0.0) : Texture
Rotate by radians, with optional radians per second.
scale(amount : Scalar = 1.0, x : Scalar = 1.0, y : Scalar = 1.0) : Texture
Scale around the center; amount is the common factor.
scroll_x(amount : Scalar = 0.0, speed : Scalar = 0.0) : Texture
Horizontal offset and scrolling speed.
scroll_y(amount : Scalar = 0.0, speed : Scalar = 0.0) : Texture
Vertical offset and scrolling speed.
thresh(threshold : Scalar = 0.5, tolerance : Scalar = 0.04) : Texture
Black/white luminance threshold.