TargetNode.Target


public final class TargetNode.Target


List of scalar tip properties that can be modified by a androidx.ink.brush.BrushBehavior.

Summary

Public fields

static final @NonNull TargetNode.Target

Adds the target modifier to androidx.ink.brush.BrushTip.cornerRounding.

static final @NonNull TargetNode.Target

Scales the brush-tip height, starting from the value calculated using androidx.ink.brush.BrushTip.scaleY.

static final @NonNull TargetNode.Target

Shifts the hue of the base brush color.

static final @NonNull TargetNode.Target

Shifts the luminosity of the base brush color.

static final @NonNull TargetNode.Target

Scales the opacity of the base brush color.

static final @NonNull TargetNode.Target

Adds the target modifier to androidx.ink.brush.BrushTip.pinch.

static final @NonNull TargetNode.Target

Moves the brush tip by the target modifier times the brush size in the direction of the modeled stroke input's velocity (the opposite direction if the value is negative).

static final @NonNull TargetNode.Target

Moves the brush tip by the target modifier times the brush size perpendicular to the modeled stroke input's velocity, rotated 90 degrees in the direction from the positive x-axis to the positive y-axis.

static final @NonNull TargetNode.Target

Adds the target modifier times the brush size to the brush tip x position.

static final @NonNull TargetNode.Target

Adds the target modifier times the brush size to the brush tip y position .

static final @NonNull TargetNode.Target

Adds the target modifier to androidx.ink.brush.BrushTip.rotationDegrees.

static final @NonNull TargetNode.Target

Scales the saturation of the base brush color.

static final @NonNull TargetNode.Target

Convenience enumerator to target both WIDTH_MULTIPLIER and HEIGHT_MULTIPLIER.

static final @NonNull TargetNode.Target

Adds the target modifier to androidx.ink.brush.BrushTip.slantDegrees.

static final @NonNull TargetNode.Target

Adds the target modifier to the initial texture animation progress value of the current particle (which is relevant only for strokes with an animated texture).

static final @NonNull TargetNode.Target

Scales the brush-tip width, starting from the value calculated using androidx.ink.brush.BrushTip.scaleX.

Public methods

@NonNull String

Public fields

CORNER_ROUNDING_OFFSET

public static final @NonNull TargetNode.Target CORNER_ROUNDING_OFFSET

Adds the target modifier to androidx.ink.brush.BrushTip.cornerRounding. The final brush corner rounding value is clamped to 0, 1. If multiple behaviors have this target, they stack additively.

HEIGHT_MULTIPLIER

public static final @NonNull TargetNode.Target HEIGHT_MULTIPLIER

Scales the brush-tip height, starting from the value calculated using androidx.ink.brush.BrushTip.scaleY. If multiple behaviors have this target, they stack multiplicatively.

HUE_OFFSET_IN_RADIANS

public static final @NonNull TargetNode.Target HUE_OFFSET_IN_RADIANS

Shifts the hue of the base brush color. A positive offset shifts around the hue wheel from red towards orange, while a negative offset shifts the other way, from red towards violet. The final hue offset is not clamped, but is effectively normalized (mod 2π). If multiple behaviors have this target, they stack additively.

LUMINOSITY_OFFSET

public static final @NonNull TargetNode.Target LUMINOSITY_OFFSET

Shifts the luminosity of the base brush color. An offset of ±1.0 corresponds to changing the luminosity by up to ±100%. If multiple behaviors have this target, they stack additively. The final luminosity offset is clamped to -1, 1.

OPACITY_MULTIPLIER

public static final @NonNull TargetNode.Target OPACITY_MULTIPLIER

Scales the opacity of the base brush color. If multiple behaviors have one of these targets, they stack multiplicatively. The final opacity multiplier is clamped to 0, 2.

PINCH_OFFSET

public static final @NonNull TargetNode.Target PINCH_OFFSET

Adds the target modifier to androidx.ink.brush.BrushTip.pinch. The final brush pinch value is clamped to 0, 1. If multiple behaviors have this target, they stack additively.

POSITION_OFFSET_FORWARD_IN_MULTIPLES_OF_BRUSH_SIZE

public static final @NonNull TargetNode.Target POSITION_OFFSET_FORWARD_IN_MULTIPLES_OF_BRUSH_SIZE

Moves the brush tip by the target modifier times the brush size in the direction of the modeled stroke input's velocity (the opposite direction if the value is negative).

POSITION_OFFSET_LATERAL_IN_MULTIPLES_OF_BRUSH_SIZE

public static final @NonNull TargetNode.Target POSITION_OFFSET_LATERAL_IN_MULTIPLES_OF_BRUSH_SIZE

Moves the brush tip by the target modifier times the brush size perpendicular to the modeled stroke input's velocity, rotated 90 degrees in the direction from the positive x-axis to the positive y-axis.

POSITION_OFFSET_X_IN_MULTIPLES_OF_BRUSH_SIZE

public static final @NonNull TargetNode.Target POSITION_OFFSET_X_IN_MULTIPLES_OF_BRUSH_SIZE

Adds the target modifier times the brush size to the brush tip x position.

POSITION_OFFSET_Y_IN_MULTIPLES_OF_BRUSH_SIZE

public static final @NonNull TargetNode.Target POSITION_OFFSET_Y_IN_MULTIPLES_OF_BRUSH_SIZE

Adds the target modifier times the brush size to the brush tip y position .

ROTATION_OFFSET_IN_RADIANS

public static final @NonNull TargetNode.Target ROTATION_OFFSET_IN_RADIANS

Adds the target modifier to androidx.ink.brush.BrushTip.rotationDegrees. The final brush rotation angle is effectively normalized (mod 2π). If multiple behaviors have this target, they stack additively.

SATURATION_MULTIPLIER

public static final @NonNull TargetNode.Target SATURATION_MULTIPLIER

Scales the saturation of the base brush color. If multiple behaviors have one of these targets, they stack multiplicatively. The final saturation multiplier is clamped to 0, 2.

SIZE_MULTIPLIER

public static final @NonNull TargetNode.Target SIZE_MULTIPLIER

Convenience enumerator to target both WIDTH_MULTIPLIER and HEIGHT_MULTIPLIER.

SLANT_OFFSET_IN_RADIANS

public static final @NonNull TargetNode.Target SLANT_OFFSET_IN_RADIANS

Adds the target modifier to androidx.ink.brush.BrushTip.slantDegrees. The final brush slant value is clamped to -π/2, π/2. If multiple behaviors have this target, they stack additively.

TEXTURE_ANIMATION_PROGRESS_OFFSET

public static final @NonNull TargetNode.Target TEXTURE_ANIMATION_PROGRESS_OFFSET

Adds the target modifier to the initial texture animation progress value of the current particle (which is relevant only for strokes with an animated texture). The final progress offset is not clamped, but is effectively normalized (mod 1). If multiple behaviors have this target, they stack additively.

WIDTH_MULTIPLIER

public static final @NonNull TargetNode.Target WIDTH_MULTIPLIER

Scales the brush-tip width, starting from the value calculated using androidx.ink.brush.BrushTip.scaleX. If multiple behaviors have this target, they stack multiplicatively.

Public methods

toString

public @NonNull String toString()