byte[] buildBrushSoft(byte[] brush, CPBrushInfo brushInfo) {
		int intSize = (int) (brushInfo.curSize + .99f);
		float center = intSize / 2.f;
		float sqrRadius = (brushInfo.curSize / 2) * (brushInfo.curSize / 2);

		float xFactor = 1f + brushInfo.curSqueeze * MAX_SQUEEZE;
		float cosA = (float) Math.cos(brushInfo.curAngle);
		float sinA = (float) Math.sin(brushInfo.curAngle);

		// byte[] brush = new int[size * size];
		int offset = 0;
		for (int j = 0; j < intSize; j++) {
			for (int i = 0; i < intSize; i++) {
				float x = (i + .5f - center);
				float y = (j + .5f - center);
				float dx = (x * cosA - y * sinA) * xFactor;
				float dy = (y * cosA + x * sinA);

				float sqrDist = dx * dx + dy * dy;

				if (sqrDist <= sqrRadius) {
					brush[offset++] = (byte) (255 * (1 - (sqrDist / sqrRadius)));
				} else {
					brush[offset++] = 0;
				}
			}
		}

		return brush;
	}