initPaint(g2);
fillShape(g2);
drawShape(g2);
g2.translate(b.getX(),b.getY());
//blur
buf.apply(new BlurEffect(blurRadius));
g2.translate(-blurRadius,-blurRadius);
//use blur as alpha mask to draw in the real color
buf.apply(new WipeColorEffect(shadow.getColor()));
oldShadow = shadow;