Code example for Path

Methods: closelineTotransform

0
 
		terrainPath = terrain.getPath();
 
		// add the bottom line so that the path is formed as a closed 
		// polygon 
		terrainPath.lineTo(1, 0);
		terrainPath.lineTo(0, 0);
		terrainPath.close();
 
		// HACK: transforming to screen coordinates here because if we don't 
		// scale the Path object, the image won't be shown correctly 
		terrainPath.transform(transform.getMatrix());
 
		return terrainPath;
	} 
 
	@Override 
	public Drawable createDrawable() {
		Path path = getTerrainPath();
 
Stop searching for code, let great code find you!  Add Codota to your java IDE