Beispiel #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;
 }
Beispiel #2
0
 public Canvas setColor(LColor color) {
   int argb = color.getARGB();
   this.setStrokeColor(argb);
   this.setFillColor(argb);
   this.setAlpha(color.a);
   return this;
 }
Beispiel #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;
 }
Beispiel #4
0
 @Override
 public Canvas setStrokeColor(int color) {
   strokeColor = color;
   ctx.setStrokeStyle(LColor.cssColorString(color));
   return this;
 }
Beispiel #5
0
 @Override
 public Canvas setFillColor(int color) {
   ctx.setFillStyle(LColor.cssColorString(color));
   return this;
 }