Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Experimental WebAPI
GitHub

CanvasGradient

Values

addColorStop

Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.

Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.Read more on MDN

letaddColorStop: (
WebAPI.CanvasAPI.canvasGradient,
~offset:float,
~color:string,
)=>unit

Parameters

WebAPI.CanvasAPI.canvasGradient float string

Return type

unit

isInstanceOf

letisInstanceOf:'t=>bool

[8]ページ先頭

©2009-2025 Movatter.jp