BrushPaint.TextureLayer


public abstract class BrushPaint.TextureLayer

Known direct subclasses
BrushPaint.StampingTexture

A texture that is "stamped" onto each particle of the stroke, scaled or rotated appropriately to cover the whole particle.

BrushPaint.TilingTexture

A texture layer that will repeat according to a 2D affine transformation of vertex positions.


Summary

Nested types

The method by which the combined texture layers (index <= i) are blended with the next layer.

Units for specifying TextureLayer dimensions.

public final class BrushPaint.TextureLayer.Wrap

Wrap modes for specifying TextureLayer wrapping behavior.

Public methods

final @NonNull BrushPaint.TextureLayer.BlendMode

The rule by which the texture layers up to and including this one are combined with the subsequent layer.

Public methods

getBlendMode

Added in 1.1.0-alpha03
public final @NonNull BrushPaint.TextureLayer.BlendMode getBlendMode()

The rule by which the texture layers up to and including this one are combined with the subsequent layer.

I.e. BrushPaint::texture_layers[index].blend_mode will be used to combine "src", which is the result of blending layers 0..index, with "dst", which is the layer at index + 1. If index refers to the last texture layer, then the layer at "index + 1" is the brush color layer.