Interface CanvasFillStrokeStyles
interface CanvasFillStrokeStyles {
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string): CanvasPattern;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string): CanvasPattern;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
Hierarchy
- CanvasFillStrokeStyles (view full)
Index
Methods
createConicGradient
- create
Conic (startAngle, x, y): CanvasGradientGradient Parameters
- startAngle: number
- x: number
- y: number
Returns CanvasGradient
createLinearGradient
- create
Linear (x0, y0, x1, y1): CanvasGradientGradient Parameters
- x0: number
- y0: number
- x1: number
- y1: number
Returns CanvasGradient
createPattern
- create
Pattern (image, repetition): CanvasPattern Parameters
- image: CanvasImageSource
- repetition: string
Returns CanvasPattern
createRadialGradient
- create
Radial (x0, y0, r0, x1, y1, r1): CanvasGradientGradient Parameters
- x0: number
- y0: number
- r0: number
- x1: number
- y1: number
- r1: number
Returns CanvasGradient
MDN Reference