Android的Path.FillType除了支持上面两种模式外,还支持了上面两种模式的反模式,一共定义了EVEN_ODD, INVERSE_EVEN_ODD, WINDING, INVERSE_WINDING 四种模式。
Path.FillType.WINDING
Path.FillType.EVEN_ODD
Path.FillType.INVERSE_WINDING
showPath(canvas,160, 160, Path.FillType.INVERSE_EVEN_ODD, paint);

网友评论