BrushConfiguration

data class BrushConfiguration(val style: StrokeStyle = StrokeStyle.FOUNTAIN, val color: Int = 0xff000000.toInt(), val widthPx: Float = 3.0f, val tiltEnabled: Boolean = true, val fastMode: Boolean = false, val minWidthPx: Float = 0.0f, val rotateAngleDegrees: Int = 0, val tiltScale: Float = 0.0f, val directionEnabled: Boolean = false, val maxTouchPressure: Float = 1.0f, val dpi: Float = 320.0f, val displayScaleX: Float = 1.0f, val displayScaleY: Float = 1.0f, val scalePrecision: Float = 1.0f, val brushSpacing: Float = 0.25f, val brushShape: BrushShape = BrushShape.CIRCLE, val brushRatio: Float = 5.0f, val brushAngleDegrees: Float = 0.0f, val pressureSensitivity: Float = 0.0f, val velocitySensitivity: Float = 0.0f, val velocityAmplifier: Float = 0.0f, val velocityIgnoreThreshold: Float = 0.0f, val velocityLowerBound: Float = 0.0f, val velocityUpperBound: Float = 0.0f, val smoothLevel: Float = 0.2f, val startPointLimit: Float = 0.0f, val startLengthLimit: Float = 0.0f, val endVelocitySensitivity: Float = 0.0f, val endThinningRate: Float = 0.0f, val ignorePressure: Float = 0.0f, val dashPattern: DashPattern? = null)(source)

Complete brush configuration shared by raw overlay and native renderer APIs.

Constructors

Link copied to clipboard
constructor(style: StrokeStyle = StrokeStyle.FOUNTAIN, color: Int = 0xff000000.toInt(), widthPx: Float = 3.0f, tiltEnabled: Boolean = true, fastMode: Boolean = false, minWidthPx: Float = 0.0f, rotateAngleDegrees: Int = 0, tiltScale: Float = 0.0f, directionEnabled: Boolean = false, maxTouchPressure: Float = 1.0f, dpi: Float = 320.0f, displayScaleX: Float = 1.0f, displayScaleY: Float = 1.0f, scalePrecision: Float = 1.0f, brushSpacing: Float = 0.25f, brushShape: BrushShape = BrushShape.CIRCLE, brushRatio: Float = 5.0f, brushAngleDegrees: Float = 0.0f, pressureSensitivity: Float = 0.0f, velocitySensitivity: Float = 0.0f, velocityAmplifier: Float = 0.0f, velocityIgnoreThreshold: Float = 0.0f, velocityLowerBound: Float = 0.0f, velocityUpperBound: Float = 0.0f, smoothLevel: Float = 0.2f, startPointLimit: Float = 0.0f, startLengthLimit: Float = 0.0f, endVelocitySensitivity: Float = 0.0f, endThinningRate: Float = 0.0f, ignorePressure: Float = 0.0f, dashPattern: DashPattern? = null)

Properties

Link copied to clipboard

Brush-shape rotation in degrees.

Link copied to clipboard

Aspect ratio of non-circular brush shapes.

Link copied to clipboard

Shape used to stamp native brush samples.

Link copied to clipboard

Spacing between native brush samples, in the range 0.1..1.

Link copied to clipboard
val color: Int

Packed ARGB stroke color.

Link copied to clipboard

Dash geometry required when style is StrokeStyle.DASH.

Link copied to clipboard

Whether stroke direction affects native rendering.

Link copied to clipboard

Horizontal display scale passed to the native renderer.

Link copied to clipboard

Vertical display scale passed to the native renderer.

Link copied to clipboard
val dpi: Float

Display density passed to the native renderer.

Link copied to clipboard

End-of-stroke thinning strength, in the range 0..1.

Link copied to clipboard

End-of-stroke velocity response, in the range 0..1.

Link copied to clipboard

Whether the native renderer favors its fast path.

Link copied to clipboard

Amount of pressure variation ignored, in the range 0..1.

Link copied to clipboard

Pressure ceiling expected by the native renderer.

Link copied to clipboard

Minimum native-rendered stroke width in physical pixels.

Link copied to clipboard

Native pressure response, in the range 0..1.

Link copied to clipboard

Rotation applied by the native renderer.

Link copied to clipboard

Native coordinate-scale precision.

Link copied to clipboard

Native smoothing strength, in the range 0..1.

Link copied to clipboard

Initial length limit used by native tapering.

Link copied to clipboard

Initial point limit used by native tapering.

Link copied to clipboard

Firmware overlay stroke style.

Link copied to clipboard

Whether tilt affects native-rendered stroke geometry.

Link copied to clipboard

Native renderer multiplier for input tilt.

Link copied to clipboard

Native velocity amplification, in the range 0..1.

Link copied to clipboard

Velocity below which variation is ignored.

Link copied to clipboard

Lower velocity bound used for width modulation.

Link copied to clipboard

Native velocity response, in the range 0..1.

Link copied to clipboard

Upper velocity bound used for width modulation.

Link copied to clipboard

Nominal stroke width in physical pixels.