CanvasFillStrokeStyles

JS
1.1
interface CanvasFillStrokeStyles
(source)

Properties

JS
1.1

fillStyle

open var fillStyle: dynamic
JS
1.1

strokeStyle

open var strokeStyle: dynamic

Functions

JS
1.1

createLinearGradient

abstract fun createLinearGradient(
    x0: Double,
    y0: Double,
    x1: Double,
    y1: Double
): CanvasGradient
JS
1.1

createPattern

abstract fun createPattern(
    image: CanvasImageSource,
    repetition: String
): CanvasPattern?
JS
1.1

createRadialGradient

abstract fun createRadialGradient(
    x0: Double,
    y0: Double,
    r0: Double,
    x1: Double,
    y1: Double,
    r1: Double
): CanvasGradient

Inheritors

JS
1.1

CanvasRenderingContext2D

Exposes the JavaScript CanvasRenderingContext2D to Kotlin

abstract class CanvasRenderingContext2D : 
    CanvasState,
    CanvasTransform,
    CanvasCompositing,
    CanvasImageSmoothing,
    CanvasFillStrokeStyles,
    CanvasShadowStyles,
    CanvasFilters,
    CanvasRect,
    CanvasDrawPath,
    CanvasUserInterface,
    CanvasText,
    CanvasDrawImage,
    CanvasHitRegion,
    CanvasImageData,
    CanvasPathDrawingStyles,
    CanvasTextDrawingStyles,
    CanvasPath,
    RenderingContext