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