createLinearGradient method

  1. @DomName('CanvasRenderingContext2D.createLinearGradient')
  2. @DocsEditable()
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1)

Source

@DomName('CanvasRenderingContext2D.createLinearGradient')
@DocsEditable()
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) =>
    _blink.BlinkCanvasRenderingContext2D.instance
        .createLinearGradient_Callback_4_(this, x0, y0, x1, y1);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/CanvasRenderingContext2D/createLinearGradient.html