javaquery/canvas/src/main/java/net/java/html/canvas/LinearGradient.java
branchcanvas
changeset 1131 dec5f4e7d031
parent 1130 6790eb381615
child 1132 368626597f1a
     1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/LinearGradient.java	Thu May 23 08:07:54 2013 +0200
     1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/LinearGradient.java	Thu May 23 08:15:11 2013 +0200
     1.3 @@ -29,6 +29,15 @@
     1.4      
     1.5      double x0, y0, x1, y1;
     1.6  
     1.7 +    public LinearGradient( double x0, double y0, double x1, double y1) {
     1.8 +        this.x0 = x0;
     1.9 +        this.y0 = y0;
    1.10 +        this.x1 = x1;
    1.11 +        this.y1 = y1;
    1.12 +    }
    1.13 +
    1.14 +    
    1.15 +    
    1.16      void addColorStop(double position, String color){
    1.17          if (stops == null) stops = new HashMap<>();
    1.18          stops.put(position, color);