Name |
printArray()打印数组 |
||||
Examples |
float[] f = { 0.3, 0.4, 0.5 }; printArray(f);
// The above code prints: // [0] 0.3 // [1] 0.4 // [2] 0.5 |
||||
Description |
The printArray() function writes array data to the text area of the Processing environment’s console. A new line is put between each element of the array. This function can only print one dimensional arrays. Note that the console is relatively slow. It works well for occasional messages, but does not support high-speed, real-time output (such as at 60 frames per second). printarray () 函数将数组数据写入处理环境的控制台的文本区域。在数组的每个元素之间放置一个新行。此函数只能打印一维数组。
请注意, 控制台相对较慢。它对偶尔的消息很有效, 但不支持高速、real-time 的输出 (如每秒60帧)。 |
||||
Syntax |
printArray(what) |
||||
Parameters |
|
||||
Returns |
void |
||||
Related |
print() |
- 本文固定链接: http://iprocessing.cn/2017/08/01/printarray打印数组/
- 转载请注明: 卡萨布兰卡 于 Processing编程艺术 发表