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 Summary)
Index
Methods
createConicGradient
- createConicGradient(startAngle: number, x: number, y: number): CanvasGradient
Parameters
- startAngle: number
- x: number
- y: number
Returns CanvasGradient
createLinearGradient
- createLinearGradient(
x0: number,
y0: number,
x1: number,
y1: number,
): CanvasGradient Parameters
- x0: number
- y0: number
- x1: number
- y1: number
Returns CanvasGradient
createPattern
- createPattern(image: CanvasImageSource, repetition: string): CanvasPattern
Parameters
- image: CanvasImageSource
- repetition: string
Returns CanvasPattern
createRadialGradient
- createRadialGradient(
x0: number,
y0: number,
r0: number,
x1: number,
y1: number,
r1: number,
): CanvasGradient Parameters
- x0: number
- y0: number
- r0: number
- x1: number
- y1: number
- r1: number
Returns CanvasGradient
MDN Reference