I’d like to be able to plot trig functions & fractals & parametric equations on Kotlin

I’d like to be able to plot trig functions & fractals & parametric equations on Kotlin. I read about Let’s Plot. Back when Basic was Basic & not Visual Basic, I created programs that plotted parametric equations. It was right neat watching the equations be plotted.

That’s what I’d like to with Kotlin. I’d like to create a window with buttons & text boxes so that I can put in X & Y coordinates & degrees(not radians) & see the plots drawn.

I guess that Kotlin out-of-the-box cannot plot equations. I’d need some way to create a window & put buttons & text boxes on it. I can use Java FX. I think that I read online that I also need to use CSS & HTML along with Java FX. I can use Compose to make the window & stuff, correct?

Flutter uses Dart.

I’m confused! I don’t want to learn several languages in order to accomplish what I want. I’m a firm believer in KISS(not the rock band!).

What solution do you suggest?

Kandy inside Kotlin Notebooks is definitely the way!

Try using Lets-plot for Compose.
Take a look at examples to get started: GitHub - JetBrains/lets-plot-compose-demos

I can use Compose to make the window & stuff, correct?

Alternatively you can use old good Java Swing.

1 Like

It looks like there’s a lot of coding involved when using Compose - Gradle, XML, etc.

Can I get basically the same results using Swing or Java FX? I read about KotlinFX.