BrushPaint.StampingTexture.Builder



Builder for StampingTexture.

For Java developers, use StampingTexture.Builder to construct a StampingTexture with default values, overriding only as needed. For example: StampingTexture layer = StampingTexture.builder().setClientTextureId(id).build();

Summary

Public functions

BrushPaint.StampingTexture

Constructs a TextureLayer from this Builder.

Cmn
BrushPaint.StampingTexture.Builder
setAnimationColumns(animationColumns: @IntRange(from = 1, to = 4096) Int)

Sets the number of animation columns in this texture layer.

Cmn
BrushPaint.StampingTexture.Builder
setAnimationDurationMillis(
    animationDurationMillis: @IntRange(from = 0, to = 16777216) Long
)

Sets the duration of the animation for this texture layer.

Cmn
BrushPaint.StampingTexture.Builder
setAnimationFrames(animationFrames: @IntRange(from = 1, to = 16777216) Int)

Sets the number of animation frames in this texture layer.

Cmn
BrushPaint.StampingTexture.Builder

Sets what should happen when this texture layer's animation repeats.

Cmn
BrushPaint.StampingTexture.Builder
setAnimationRows(animationRows: @IntRange(from = 1, to = 4096) Int)

Sets the number of animation rows in this texture layer.

Cmn
BrushPaint.StampingTexture.Builder

Sets the blend mode used for blending this and all previous texture layers with the next one.

Cmn
BrushPaint.StampingTexture.Builder
setClientTextureId(clientTextureId: String)

Sets the client texture ID for this texture layer.

Cmn

Public functions

build

fun build(): BrushPaint.StampingTexture

Constructs a TextureLayer from this Builder.

Throws
IllegalStateException

if clientTextureId, sizeX, and/or sizeY were never set

setAnimationColumns

fun setAnimationColumns(animationColumns: @IntRange(from = 1, to = 4096) Int): BrushPaint.StampingTexture.Builder

Sets the number of animation columns in this texture layer.

setAnimationDurationMillis

fun setAnimationDurationMillis(
    animationDurationMillis: @IntRange(from = 0, to = 16777216) Long
): BrushPaint.StampingTexture.Builder

Sets the duration of the animation for this texture layer.

setAnimationFrames

fun setAnimationFrames(animationFrames: @IntRange(from = 1, to = 16777216) Int): BrushPaint.StampingTexture.Builder

Sets the number of animation frames in this texture layer.

setAnimationRepeatMode

fun setAnimationRepeatMode(
    animationRepeatMode: BrushPaint.AnimationRepeatMode
): BrushPaint.StampingTexture.Builder

Sets what should happen when this texture layer's animation repeats.

setAnimationRows

fun setAnimationRows(animationRows: @IntRange(from = 1, to = 4096) Int): BrushPaint.StampingTexture.Builder

Sets the number of animation rows in this texture layer.

setBlendMode

fun setBlendMode(blendMode: BrushPaint.TextureLayer.BlendMode): BrushPaint.StampingTexture.Builder

Sets the blend mode used for blending this and all previous texture layers with the next one.

setClientTextureId

fun setClientTextureId(clientTextureId: String): BrushPaint.StampingTexture.Builder

Sets the client texture ID for this texture layer.