From class DrawScope
Unit |
drawArc(brush: Brush, startAngle: Float, sweepAngle: Float, useCenter: Boolean, topLeft: Offset = Offset.Zero, size: Size = this.size.offsetSize(topLeft), alpha: Float = 1.0f, style: DrawStyle = Fill, colorFilter: ColorFilter? = null, blendMode: BlendMode = DefaultBlendMode)
Draw an arc scaled to fit inside the given rectangle. It starts from
startAngle degrees around the oval up to startAngle + sweepAngle
degrees around the oval, with zero degrees being the point on
the right hand side of the oval that crosses the horizontal line
that intersects the center of the rectangle and with positive
angles going clockwise around the oval. If useCenter is true, the arc is
closed back to the center, forming a circle sector. Otherwise, the arc is
not closed, forming a circle segment.
|
Unit |
drawArc(color: Color, startAngle: Float, sweepAngle: Float, useCenter: Boolean, topLeft: Offset = Offset.Zero, size: Size = this.size.offsetSize(topLeft), alpha: Float = 1.0f, style: DrawStyle = Fill, colorFilter: ColorFilter? = null, blendMode: BlendMode = DefaultBlendMode)
Draw an arc scaled to fit inside the given rectangle. It starts from
startAngle degrees around the oval up to startAngle + sweepAngle
degrees around the oval, with zero degrees being the point on
the right hand side of the oval that crosses the horizontal line
that intersects the center of the rectangle and with positive
angles going clockwise around the oval. If useCenter is true, the arc is
closed back to the center, forming a circle sector. Otherwise, the arc is
not closed, forming a circle segment.
|
Unit |
drawCircle(brush: Brush, radius: Float = size.minDimension / 2.0f, center: Offset = this.center, alpha: Float = 1.0f, style: DrawStyle = Fill, colorFilter: ColorFilter? = null, blendMode: BlendMode = DefaultBlendMode)
Draws a circle at the provided center coordinate and radius. If no center point is provided
the center of the bounds is used.
|
Unit |
drawCircle(color: Color, | |