我想用 Kotlin 画三角函数曲线、分形和参数方程图。看到过 Let's Plot 的介绍。以前 Basic 还没变成 Visual Basic 时,我写过画参数曲线的程序。看着方程在屏幕上画出来,还挺有意思。
现在我想在 Kotlin 里做同样的事。我想要一个带按钮和文本框的窗口,输入 X 和 Y 的值,还有角度(用度,不用弧度),然后看图形画出来。
单独装好 Kotlin,大概并不能直接画方程。还得有东西来提供窗口、按钮和文本框。Java FX 是一个选择。我好像在网上看过,Java FX 还需要 CSS 和 HTML。Compose 能做出这样的窗口和控件吗?
Flutter 用的是 Dart。
我糊涂了!我不想为了这件事去学一堆语言。我很支持 KISS 原则(不是说那个乐队!)。
大家建议走哪条路?
从英语翻译·查看原文I want to draw trigonometric curves, fractals & parametric plots using Kotlin. I've seen Let's Plot mentioned. Before Basic turned into Visual Basic, I wrote software to draw parametric curves. Seeing those equations appear on screen was pretty neat.
I'd like to do that in Kotlin now. I want a window containing buttons & text fields where I enter X & Y values & angles in degrees(not radians) & watch the drawing appear.
Presumably a plain Kotlin installation doesn't draw equations. Some facility would have to supply the window, buttons & text fields. Java FX is an option. I believe something online said Java FX also requires CSS & HTML. Would Compose let me build that window & its controls?
Dart is what Flutter uses.
I'm lost! Accomplishing this shouldn't require me to study a bunch of languages. I'm very much a KISS supporter(not referring to the band!).
What approach would you recommend?