问题标签 [processing]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 如何将数据从 processing.js 序列化到 Rails 应用程序?
我正在使用 processing.js 创建一个简单的画布,如何将值从 rails 应用程序传递到 Processing.js
而不是静态字符串 "Box Value" ,我需要通过 ajax 传递来自 ex @post.name 的值
fft - 使用 FFT 的同一源的幅度差异
我有一个关于使用 FFT 的问题。使用getBand(int i)
带有Minim的函数,我可以提取特定频率的幅度并对其进行漂亮的映射。效果很好。
然而,这更像是一个好奇的问题。当我查看从使用相同频率两次播放同一首歌曲中提取的值时(因此幅度应该相同),但我得到的值非常不同 - 为什么会这样?
graphics - 如何生成不规则的球形状?
什么样的算法会生成像World of Goo中的随机“粘球” 。我正在使用Proccesing,但任何通用算法都可以。
我想这归结为如何“随机”制作有点圆的球,但不是完美的圆,而且看起来仍然很逼真?
提前致谢!
processing - 处理:为什么 setup() 运行多次?
我正在使用 Processing 开发可视化应用程序。
一切似乎进展顺利,但我注意到在控制台中,我看到println()
该方法的任何陈述setup()
一式三份。draw()
对于循环内的类似语句,情况似乎并非如此。
我认为这可能只是一个输出的东西,但我现在看到多次尝试打开文件。它也可能会对性能产生影响。
知道如何防止这种情况吗?
我在 Mac OS 10.6.3 上使用处理 1.0.9。
在此先感谢,罗斯
java - 我们可以将处理视为数学建模和编程的环境吗?
我们可以将处理视为数学建模和编程的环境吗?如果是,我们可以为 Eclipse (Java) 做同样的事情吗?
3d - 处理:如何加载 3d Blender 模型?
如何将 3-d Blender 模型加载到处理环境中?
processing - 处理:打开 UDP 套接字进行读取?
这是从 TCP 套接字打开和读取数据的示例。有没有办法创建一个 UDP 套接字?
http://www.processing.org/learning/libraries/sharedcanvasclient.html
processing - 什么是“处理”编程语言用于?
语言网站: http: //processing.org/
人们使用处理是为了什么?我有机会在课堂上学习这个,我想知道这是否能很好地利用我的时间。
processing - 处理:将 int 转换为 byte
我正在尝试将一个int
转换为byte
处理 1.0.9 中的一个。
这是我一直在使用的代码片段:
根据处理 API,这应该可以工作,但我不断收到错误 xByte = xByte | setFirst;
消息:
我尝试将 128 和 127 转换为它们各自的十六进制值(0x80 和 0x7F),但这也不起作用。我已经尝试了 API 以及其他一些博客中提到的所有内容,但我觉得我错过了一些非常微不足道的东西。
我将不胜感激任何帮助。
谢谢你。
opengl - Shape object in Processing, translate individual shapes
I am facing difficulty with the translate() function for objects as well as objects in general in Processing. I went through the examples and tried to replicate the manners by which they instantiated the objects but cannot seem to even get the shapes to appear on the screen no less move them. I instantiate the objects into an array using a nested for loop and expect a grid of the objects to be rendered. However, nothing at all is rendered.
My nested for loop structure to instantiate the tiles:
And the constructors for the tile class:
Nothing is rendered at all when this runs. Furthermore, if this is of any concern, my translations(movements) are done in a method I wrote for the tile class called move which simply calls translate. Is this the correct way? How should one approach this? I can't seem to understand at all how to render/create/translate individual objects/shapes.