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