Explore map catalog
Design and customize your own maps
Create powerful apps with our versatile SDK
Powerful map searching and geocoding services
Enrich maps with your own data
Secure self-hosted mapping solutions
The CanvasGradient interface represents an opaque object describing a gradient.
CanvasGradient
MDN Reference
The CanvasGradient.addColorStop() method adds a new color stop, defined by an offset and a color, to a given canvas gradient.
CanvasGradient.addColorStop()
offset
color
Thank you! Please tell us what's unclear or missing on this page, so we can improve it for you.
Thank you for your feedback!
You've already voted on this page.
reCAPTCHA failed! Please try again.
The
CanvasGradientinterface represents an opaque object describing a gradient.MDN Reference