/** * Set the current Fill Style to the specified color. * * @param color {@link Color} */ public void setFillStyle(Color color) { impl.setFillStyle(color.toString()); }
/** * Set the current Fill Style to the specified color gradient. * * <p>WARNING: Canvas Gradients currently have an unfinished implementation for Internet Explorer. * We would more than welcome a patch from the community to get gradients working on IE. * * @param grad {@link CanvasGradient} */ public void setFillStyle(CanvasGradient grad) { impl.setFillStyle(grad); }