BrushPaint.TextureLayer.Wrap


public final class BrushPaint.TextureLayer.Wrap


Wrap modes for specifying TextureLayer wrapping behavior.

Summary

Public fields

static final @NonNull BrushPaint.TextureLayer.Wrap

Points outside of the texture have the color of the nearest texture edge point.

static final @NonNull BrushPaint.TextureLayer.Wrap

Repeats texture image horizontally/vertically, alternating mirror images so that adjacent edges always match.

static final @NonNull BrushPaint.TextureLayer.Wrap

Repeats texture image horizontally/vertically.

Public methods

final @NonNull Version

Returns the minimum required Version for this Wrap.

@NonNull String

Public fields

CLAMP

public static final @NonNull BrushPaint.TextureLayer.Wrap CLAMP

Points outside of the texture have the color of the nearest texture edge point. This mode is typically most useful when the edge pixels of the texture image are all the same, e.g. either transparent or a single solid color.

MIRROR

public static final @NonNull BrushPaint.TextureLayer.Wrap MIRROR

Repeats texture image horizontally/vertically, alternating mirror images so that adjacent edges always match.

REPEAT

public static final @NonNull BrushPaint.TextureLayer.Wrap REPEAT

Repeats texture image horizontally/vertically.

Public methods

calculateMinimumRequiredVersion

Added in 1.1.0-alpha06
public final @NonNull Version calculateMinimumRequiredVersion()

Returns the minimum required Version for this Wrap.

By default, decoding a BrushFamily containing a Wrap with a minimum required version higher than Version.MAX_SUPPORTED will fail.

toString

public @NonNull String toString()