pierbezuhoff
PathEffect
Canvas
private val HAIR_PATH_EFFECT = PathEffect.stampedPathEffect( shape = HAIR_PATH, advance = HAIR_SPACING, phase = 0f, style = StampedPathEffectStyle.Rotate ) private val ARROWED_PATH_EFFECT = PathEffect.stampedPathEffect( shape = ARROW_SHAPE, advance = ARROW_SPACING, phase = ARROW_SPACING/2, style = StampedPathEffectStyle.Rotate ) ... (in DrawScope) drawPath(linePath, color, style = Stroke(pathEffect = HAIR_PATH_EFFECT)) drawPath(linePath, color, style = Stroke(pathEffect = ARROWED_PATH_EFFECT))
A modern programming language that makes developers happier.