Hello, how can I curve only the top edge of triang...
# random
n
Hello, how can I curve only the top edge of triangle in canvas? I am stuck at
quadraticBezierTo
, any help is appreciated! Code in thread
Code for drawing the triangle
Copy code
val triangle = Path().apply {
    moveTo(x = x, y = y - indicatorHalfSizeInPx)
    lineTo(x = x - indicatorHalfSizeInPx, y = y + indicatorHalfSizeInPx)
    lineTo(x = x + indicatorHalfSizeInPx, y = y + indicatorHalfSizeInPx)
    lineTo(x = x, y = y - indicatorHalfSizeInPx)
    close()
}