https://kotlinlang.org logo
r

Roar Gronmo

01/16/2020, 6:42 PM
Any update on release date for 'dev04' ?
🔝 5
a

Adam Powell

01/16/2020, 7:43 PM
Working on it 🙂
❤️ 11
i

Ian Warwick

01/16/2020, 10:07 PM
Its gonna be awesome! hope you guys have implemented GenericShape
addPolygon
in dev04 I want to draw a triangle 😆
m

matvei

01/17/2020, 10:16 AM
You already can make a triangle shape, haha 🙂
😆 1
Take a look at CustomShapeActivity
Copy code
private val TriangleShape = GenericShape { size ->
    moveTo(size.width.value / 2f, 0f)
    lineTo(size.width.value, size.height.value)
    lineTo(0f, size.height.value)
}
i

Ian Warwick

01/17/2020, 10:17 AM
ah nice! 🙂
Thanks @matvei just what I need cheers 🙂
😉 1