CanvasGradient
Generated from idl/canvas.webidl when the site was built at 7aa23e2.
CanvasGradient is an interface in idl/canvas.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| 2D canvas | Widely available | Partial 77% 1209 of 1553 subtests pass | 2 |
Members
Section titled “Members”addColorStop()
Section titled “addColorStop()”undefined addColorStop(double offset, DOMString color);int32_t niso_canvas_gradient_add_color_stop(niso_dom* dom, niso_handle self, double offset, const char* color, size_t color_len);