Skip to content

[Question] Drawing the curve line #810

Answered by MairwunNx
MairwunNx asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, I found this :)), this code generates curved line by three points

val p0 = Point(0, 450)
val p1 = Point(300, 450)
val p2 = Point(300, 10)

graphics()
    .scale(3)
    .stroke(Colors.WHITE, StrokeInfo(thickness = 2.0)) {
        quad(p0, p1, p2)
    }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by soywiz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant
Converted from issue

This discussion was converted from issue #371 on July 12, 2022 14:27.