LinearGradient.this

Create a new linear gradient Pattern along the line defined by p1 and p2. Before using the gradient pattern, a number of color stops should be defined using Gradient.addColorStopRGB() or Gradient.addColorStopRGBA().

  1. this(cairo_pattern_t* ptr)
  2. this(Point!double p1, Point!double p2)
    class LinearGradient
    this
    (
    Point!double p1
    ,
    Point!double p2
    )
  3. this(double x1, double y1, double x2, double y2)

Parameters

p1 Point!double

the start point

p2 Point!double

the end point

Note: The coordinates here are in pattern space. For a new pattern, pattern space is identical to user space, but the relationship between the spaces can be changed with Pattern.setMatrix().

Meta