Skip to content

Instantly share code, notes, and snippets.

@VovaStelmashchuk
Created September 23, 2019 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VovaStelmashchuk/f0a3269cfa20361ea828ef378e732981 to your computer and use it in GitHub Desktop.
Save VovaStelmashchuk/f0a3269cfa20361ea828ef378e732981 to your computer and use it in GitHub Desktop.
with library without libary
path.moveTo(pointF) path.moveTo(pointF.x, pointF.y)
path.moveTo(point) path.moveTo(point.x.toFloat(), point.y.toFloat())
path.moveTo(xIntValue, yIntValue) path.moveTo(xIntValue.toFloat(), yIntValue.toFloat()
path.lineTo(pointF) path.lineTo(pointF.x, pointF.y)
path.lineTo(point) path.lineTo(point.x.toFloat(), point.y.toFloat())
path.lineTo(xIntValue, yIntValue) path.lineTo(xIntValue.toFloat(), yIntValue.toFloat()
path.setLastPoint(pointF) path.setLastPoint(pointF.x, pointF.y)
path.setLastPoint(point) path.setLastPoint(point.x.toFloat(), point.y.toFloat())
path.setLastPoint(xIntValue, yIntValue) path.setLastPoint(xIntValue.toFloat(), yIntValue.toFloat()
path.offset(pointF) path.offset(pointF.x, pointF.y)
path.offset(point) path.offset(point.x.toFloat(), point.y.toFloat())
path.offset(xIntValue, yIntValue) path.offset(xIntValue.toFloat(), yIntValue.toFloat()
path.addRect(pointF1, pointF2) path.addRect(pointF1.x, pointF1.y, pointF2.x, pointF2.y)
path.addRect(point1, point2) path.addRect(point1.x.toFloat(), point1.y.toFloat(), point2.x.toFloat(), point2.y.toFloat())
path.addRect(leftInt, topInt, rightInt, bottomInt) path.addRect(leftInt.toFloat(), topInt.toFloat(), rightInt.toFloat(), bottomInt.toFloat())
path.quadTo(controlPointF, pointF) path.quadTo(controlPointF.x, controlPointF.y, pointF.x, pointF.y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment