Example #1
0
 @Override
 public Canvas setColor(int r, int g, int b) {
   int rgb = LColor.getRGB(r, g, b);
   this.setStrokeColor(rgb);
   this.setFillColor(rgb);
   return null;
 }
Example #2
0
 public Canvas setColor(LColor color) {
   int argb = color.getARGB();
   this.setStrokeColor(argb);
   this.setFillColor(argb);
   this.setAlpha(color.a);
   return this;
 }
Example #3
0
 @Override
 public Canvas setColor(int r, int g, int b, int a) {
   int argb = LColor.getARGB(r, g, b, a);
   this.setStrokeColor(argb);
   this.setFillColor(argb);
   this.setAlpha(a);
   return null;
 }
Example #4
0
 @Override
 public Canvas setStrokeColor(int color) {
   strokeColor = color;
   ctx.setStrokeStyle(LColor.cssColorString(color));
   return this;
 }
Example #5
0
 @Override
 public Canvas setFillColor(int color) {
   ctx.setFillStyle(LColor.cssColorString(color));
   return this;
 }