哪些语言具有最好的内置图形支持?

发布于 2024-09-24 16:16:41 字数 264 浏览 2 评论 0原文

我是一名建筑系学生和设计师,而不是程序员,因此我正在寻找一种对交互式图形提供最佳支持的编程语言或库。例如,上周我有一个关于交通路口程序的想法,我将插入传入和传出车道,然后使用鼠标将它们与节点连接以显示所需的路径,这将用于使用最佳交通灯方案计算平均吞吐量。

或者当时我想绘制一个形状,然后将具有预定义地板空间的房间最佳地调整为该形状。

有 Javascript+Canvas、Processing、还有 Rebol,这就是我所听说的全部。 Windows 平台上有更简洁/更容易的吗?

I'm an architecture student and a designer, rather than a programmer, so I am looking for a programming language or library with best support for interactive graphics. For example, last week I had this idea about a traffic intersection program where I would insert incoming and outgoing lanes and then connect them with nodes using mouse to show the required paths and this would be used to calculate the average throughput using best traffic light scheme.

Or that time I wanted to draw a shape and then fit rooms with predefined floor space optimally into that shape.

There is Javascript+Canvas, Processing, also Rebol and that's about all I have heard of. Anything more concise/ easier available on Windows platform?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

薄荷港 2024-10-01 16:16:41

对于您的用例,听起来最好是具有良好脚本支持的 CAD 软件包。有许多 CAD 软件包,它们都采用不同的脚本编写方法。 AutoCad 使用 Lisp,BRL-CAD 有自己的语言,PythonCAD 使用,令人惊讶的是,Python。我会查看这些或其他可能具有脚本支持的 CAD 软件包,看看它们是否能满足您的需求。

For your use case, it would sound like a CAD package with good scripting support would be best. There are many CAD packages out there, and they all take different approaches to scripting. AutoCad uses Lisp, BRL-CAD has its own language, and PythonCAD uses, surprisingly enough, Python. I would look at these, or other CAD packages that may have scripting support, and see if any of them will meet your needs.

情独悲 2024-10-01 16:16:41

您可能会发现 Flex 或 Flash 非常适合您的目的。借助 Flex,您可以在您最熟悉的任何程序(Photoshop、Illustrator、Paint 等等)中将所有单独的图形创建为图像,然后在 Flex 应用程序中引用这些图形。您可以在 mxml(一种用于定义 UI 的简单的基于 XML 的语言)中轻松地为所有内容指定初始位置,然后与 ActionScript(基本上与 JavaScript 相同)进行程序交互。

它还支持内置的过渡、补间和效果。

http://www.adobe.com/products /flex/

您也可以无需购买任何东西即可离开。 SDK 是免费的,并且有像 FlashDevelop 这样的不错的免费 IDE。还有更好的商业 IDE,如 IntelliJ 和 FlashBuilder。

http://www.flashdevelop.org

http://www.jetbrains.com/idea/

http://www.adobe.com/products/flashbuilder/

You might find Flex or Flash works well for your purpose. With Flex you can create all your individual graphics as images in whatever program you're most comfortable with (Photoshop, Illustrator, Paint, whatever) and then reference those within a Flex app. You can give everything an initial position easily within mxml, a simple XML based language for defining your UI, and then program interaction with ActionScript (basically same as JavaScript).

It also has support for transitions and tweens and effects built in.

http://www.adobe.com/products/flex/

You can also get away without having to buy anything. The SDK is free and there are decent free IDE's like FlashDevelop. There are also better commercial IDE's like IntelliJ and FlashBuilder.

http://www.flashdevelop.org

http://www.jetbrains.com/idea/

http://www.adobe.com/products/flashbuilder/

萧瑟寒风 2024-10-01 16:16:41

Asymptote,矢量图形语言。链接:Wiki画廊

您可以通过 LaTex 处理离线制作具有专业外观的图表,但要了解 LaTeX。它是一种用于矢量图形和函数绘图的成熟的 C 语言。输出最终被封装为 postscript (eps),可以直接显示到 LaTeX 文档中。

请注意,它不是交互式的,而更像是构建图形对象的脚本。

Asymptote, the vector graphics language. Links: Wiki, Gallery.

You can make professional looking graphs offline from LaTex processing, but being LaTeX aware. It is a full blown C-ish language for vector graphics and function graphing. The output eventually is encapsulated postscript (eps) which can be displayed directly into LaTeX documents.

Note that it is not interactive, but rather more like a script that builds graphics objects.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文