IntersectionPoint

data class IntersectionPoint(val color: Color = Color.Black, val radius: Dp = 6.dp, val alpha: Float = 1.0f, val style: DrawStyle = Fill, val colorFilter: ColorFilter? = null, val blendMode: BlendMode = DrawScope.DefaultBlendMode, val draw: DrawScope.(Offset) -> Unit = { center -> drawCircle( color, radius.toPx(), center, alpha, style, colorFilter, blendMode ) })

Represents a point on the line graph

Parameters

color

The color or fill to be applied to the circle

radius

The radius of the circle

alpha

Opacity to be applied to the circle from 0.0f to 1.0f representing fully transparent to fully opaque respectively

style

Whether or not the circle is stroked or filled in

colorFilter

ColorFilter to apply to the color when drawn into the destination

blendMode

Blending algorithm to be applied to the brush

draw

override this to change the default drawCircle implementation. You are provided with the actual Point that represents the intersection.

Constructors

Link copied to clipboard
constructor(color: Color = Color.Black, radius: Dp = 6.dp, alpha: Float = 1.0f, style: DrawStyle = Fill, colorFilter: ColorFilter? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode, draw: DrawScope.(Offset) -> Unit = { center -> drawCircle( color, radius.toPx(), center, alpha, style, colorFilter, blendMode ) })

Properties

Link copied to clipboard
val alpha: Float = 1.0f
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val radius: Dp
Link copied to clipboard