Code example for Path

Methods: closelineTotransform

		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);
		// HACK: transforming to screen coordinates here because if we don't 
		// scale the Path object, the image won't be shown correctly 
		return terrainPath;
	public Drawable createDrawable() {
		Path path = getTerrainPath();
Experience pair programming with AI  Get Codota for Java