简体   繁体   English

使用python模拟处理?

[英]Emulate processing with python?

I'm looking for a basic programmatic animation framework similar to processing except in python. 我正在寻找一个类似于处理的基本程序化动画框架,除了在python中。 That is, something that allows pixel manipulation, has basic drawing/color primitives, and is geared towards animation. 也就是说,允许像素操作的东西,具有基本的绘图/颜色基元,并且面向动画。 Is pygame pretty much the best bet or are there other options? pygame几乎是最好的选择还是有其他选择?

"Similar to processing except in python" screams "NodeBox" to me. “类似于处理,除了在python中”尖叫“NodeBox”给我。 NodeBox is OSX-only, and i don't know if it allows pixel-level manipulation, but much of its command set was derived directly from processing. NodeBox只是OSX,我不知道它是否允许像素级操作,但它的大部分命令集都是直接从处理中派生出来的。 You can find it at the NodeBox site . 您可以在NodeBox站点找到它。

嗯,这是最接近的: http//code.google.com/p/pyprocessing/

You could get pretty close to processing with vpython: 你可以使用vpython非常接近处理:

http://vpython.org/ http://vpython.org/

The primitives are very easy to work with, and it is adept at animation. 这些原语很容易使用,并且擅长动画。

I am not sure what kind of pixel manipulation you are looking for, but there may be something for that as well. 我不确定你正在寻找什么样的像素操作,但也可能有一些东西。

I prefer pyglet to pygame (but I'm not sure exactly what your needs will be): 我更喜欢pyglet到pygame(但我不确定你的需求是什么):

If you need a 3d engine: 如果你需要一个3d引擎:

Someone's already mentioned Shoebot, which is probably the closest in spirit to Processing: 有人已经提到了Shoebot,它可能是最接近Processing的精神:

There's quite recent C++ library, SFML , which is a good alternative to SDL. 最新的C ++库SFML是SDL的一个很好的替代品。 Thus its Python bindings should be a good alternative to Pygame. 因此,它的Python绑定应该是Pygame的一个很好的替代品。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM