コード例 #1
0
 /**
  * Set the current Fill Style to the specified color.
  *
  * @param color {@link Color}
  */
 public void setFillStyle(Color color) {
   impl.setFillStyle(color.toString());
 }
コード例 #2
0
 /**
  * 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);
 }