Dart API Referencedart:htmlCanvasGradient

CanvasGradient Interface

This is an opaque object representing a gradient and returned by CanvasRenderingContext2D's createLinearGradient or createRadialGradient methods.

Methods

Code void addColorStop(num offset, String color) #

void addColorStop(num offset, String color);

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.