TargetNode.Target



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

Summary

Public companion properties

TargetNode.Target

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

Cmn
TargetNode.Target

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

Cmn
TargetNode.Target

Shifts the hue of the base brush color.

Cmn
TargetNode.Target

Shifts the luminosity of the base brush color.

Cmn
TargetNode.Target

Scales the opacity of the base brush color.

Cmn
TargetNode.Target

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

Cmn
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).

Cmn
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.

Cmn
TargetNode.Target

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

Cmn
TargetNode.Target

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

Cmn
TargetNode.Target

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

Cmn
TargetNode.Target

Scales the saturation of the base brush color.

Cmn
TargetNode.Target

Convenience enumerator to target both WIDTH_MULTIPLIER and HEIGHT_MULTIPLIER.

Cmn
TargetNode.Target

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

Cmn
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).

Cmn
TargetNode.Target

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

Cmn

Public functions

open String
Cmn

Public companion properties

CORNER_ROUNDING_OFFSET

val CORNER_ROUNDING_OFFSETTargetNode.Target

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

val HEIGHT_MULTIPLIERTargetNode.Target

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

val HUE_OFFSET_IN_RADIANSTargetNode.Target

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

val LUMINOSITY_OFFSETTargetNode.Target

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

val OPACITY_MULTIPLIERTargetNode.Target

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

val PINCH_OFFSETTargetNode.Target

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

val POSITION_OFFSET_FORWARD_IN_MULTIPLES_OF_BRUSH_SIZETargetNode.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).

POSITION_OFFSET_LATERAL_IN_MULTIPLES_OF_BRUSH_SIZE

val POSITION_OFFSET_LATERAL_IN_MULTIPLES_OF_BRUSH_SIZETargetNode.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.

POSITION_OFFSET_X_IN_MULTIPLES_OF_BRUSH_SIZE

val POSITION_OFFSET_X_IN_MULTIPLES_OF_BRUSH_SIZETargetNode.Target

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

POSITION_OFFSET_Y_IN_MULTIPLES_OF_BRUSH_SIZE

val POSITION_OFFSET_Y_IN_MULTIPLES_OF_BRUSH_SIZETargetNode.Target

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

ROTATION_OFFSET_IN_RADIANS

val ROTATION_OFFSET_IN_RADIANSTargetNode.Target

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

val SATURATION_MULTIPLIERTargetNode.Target

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

val SIZE_MULTIPLIERTargetNode.Target

Convenience enumerator to target both WIDTH_MULTIPLIER and HEIGHT_MULTIPLIER.

SLANT_OFFSET_IN_RADIANS

val SLANT_OFFSET_IN_RADIANSTargetNode.Target

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

val TEXTURE_ANIMATION_PROGRESS_OFFSETTargetNode.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). The final progress offset is not clamped, but is effectively normalized (mod 1). If multiple behaviors have this target, they stack additively.

WIDTH_MULTIPLIER

val WIDTH_MULTIPLIERTargetNode.Target

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 functions

toString

open fun toString(): String