KoneCanvasCommonContext

Constructors

Link copied to clipboard
constructor(contextRegistry: KoneCanvasContextRegistry)

Types

Link copied to clipboard
object Companion

Properties

Functions

Link copied to clipboard
context(controller: KoneCanvasController)
fun KoneCanvasCommonContext.circle(center: Point2<Double>, radius: Double, strokeColor: KoneColor? = null, strokeWidth: Double = 0.0, fillColor: KoneColor? = null)
Link copied to clipboard
context(controller: KoneCanvasController)
fun KoneCanvasCommonContext.ellipse(center: Point2<Double>, size: Vector2<Double>, rotation: Angle = Angle.zero, fillColor: KoneColor? = null, strokeColor: KoneColor? = null, strokeWidth: Double = 0.0)
Link copied to clipboard
context(controller: KoneCanvasController)
inline fun KoneCanvasCommonContext.group(transformationBlock: KoneCanvasTransformationContext.() -> Unit = { }, groupBlock: KoneCanvasCommonContext.() -> Unit)
Link copied to clipboard
context(controller: KoneCanvasController)
fun KoneCanvasCommonContext.line(start: Point2<Double>, end: Point2<Double>, strokeColor: KoneColor? = null, strokeWidth: Double = 0.0)
Link copied to clipboard
context(controller: KoneCanvasController)
inline fun KoneCanvasCommonContext.path(fillColor: KoneColor? = null, strokeColor: KoneColor? = null, strokeWidth: Double = 0.0, pathBuilderBlock: KoneCanvasPathContext.() -> Unit)
Link copied to clipboard
context(controller: KoneCanvasController)
fun KoneCanvasCommonContext.polygon(vertices: KoneList<Point2<Double>>, fillColor: KoneColor? = null, strokeColor: KoneColor? = null, strokeWidth: Double = 0.0)
Link copied to clipboard
context(controller: KoneCanvasController)
fun KoneCanvasCommonContext.rectangle(center: Point2<Double>, size: Vector2<Double>, rotation: Angle = Angle.zero, fillColor: KoneColor? = null, strokeColor: KoneColor? = null, strokeWidth: Double = 0.0)