protected void drawCloud(int x,int y,int w,int h,Color fillColor,Paint fillPaint,Color penColor,boolean shadow){
  GeneralPath path=new GeneralPath();
  path.moveTo((float)(x + 0.25 * w),(float)(y + 0.25 * h));
  path.curveTo((float)(x + 0.05 * w),(float)(y + 0.25 * h),(float)x,(float)(y + 0.5 * h),(float)(x + 0.16 * w),(float)(y + 0.55 * h));
  path.curveTo((float)x,(float)(y + 0.66 * h),(float)(x + 0.18 * w),(float)(y + 0.9 * h),(float)(x + 0.31 * w),(float)(y + 0.8 * h));
  path.curveTo((float)(x + 0.4 * w),(float)(y + h),(float)(x + 0.7 * w),(float)(y + h),(float)(x + 0.8 * w),(float)(y + 0.8 * h));
  path.curveTo((float)(x + w),(float)(y + 0.8 * h),(float)(x + w),(float)(y + 0.6 * h),(float)(x + 0.875 * w),(float)(y + 0.5 * h));
  path.curveTo((float)(x + w),(float)(y + 0.3 * h),(float)(x + 0.8 * w),(float)(y + 0.1 * h),(float)(x + 0.625 * w),(float)(y + 0.2 * h));
  path.curveTo((float)(x + 0.5 * w),(float)(y + 0.05 * h),(float)(x + 0.3 * w),(float)(y + 0.05 * h),(float)(x + 0.25 * w),(float)(y + 0.25 * h));
  path.closePath();
  drawPath(path,fillColor,fillPaint,penColor,shadow);
}

protected void drawCloud ( int x , int y , int w , int h , Color fillColor , Paint fillPaint , Color penColor , boolean shadow ) { GeneralPath path = new GeneralPath ( ) ; path . moveTo ( ( float ) ( x + 0.25 * w ) , ( float ) ( y + 0.25 * h ) ) ; path . curveTo ( ( float ) ( x + 0.05 * w ) , ( float ) ( y + 0.25 * h ) , ( float ) x , ( float ) ( y + 0.5 * h ) , ( float ) ( x + 0.16 * w ) , ( float ) ( y + 0.55 * h ) ) ; path . curveTo ( ( float ) x , ( float ) ( y + 0.66 * h ) , ( float ) ( x + 0.18 * w ) , ( float ) ( y + 0.9 * h ) , ( float ) ( x + 0.31 * w ) , ( float ) ( y + 0.8 * h ) ) ; path . curveTo ( ( float ) ( x + 0.4 * w ) , ( float ) ( y + h ) , ( float ) ( x + 0.7 * w ) , ( float ) ( y + h ) , ( float ) ( x + 0.8 * w ) , ( float ) ( y + 0.8 * h ) ) ; path . curveTo ( ( float ) ( x + w ) , ( float ) ( y + 0.8 * h ) , ( float ) ( x + w ) , ( float ) ( y + 0.6 * h ) , ( float ) ( x + 0.875 * w ) , ( float ) ( y + 0.5 * h ) ) ; path . curveTo ( ( float ) ( x + w ) , ( float ) ( y + 0.3 * h ) , ( float ) ( x + 0.8 * w ) , ( float ) ( y + 0.1 * h ) , ( float ) ( x + 0.625 * w ) , ( float ) ( y + 0.2 * h ) ) ; path . curveTo ( ( float ) ( x + 0.5 * w ) , ( float ) ( y + 0.05 * h ) , ( float ) ( x + 0.3 * w ) , ( float ) ( y + 0.05 * h ) , ( float ) ( x + 0.25 * w ) , ( float ) ( y + 0.25 * h ) ) ; path . closePath ( ) ; drawPath ( path , fillColor , fillPaint , penColor , shadow ) ; }
draws a cloud shape for the given parameters .
