p5.js | p5.Table getColumn() Method
The getColumn() method of p5.Table in p5.js is used to retrieve all values in the given column and return them in the form of an array. The column to be returned may be given in the form of its title or ID.
getColumn( column )
Parameters: This function accepts a single parameter as mentioned above and described below:
- column: It is a String or Number which denotes the title or the number of the column to return.
Return Value: It returns an array of column values as specified by the column parameter.
The example below illustrates the getColumn() function in p5.js:
Online editor: https://editor.p5js.org/
Environment Setup: https://www.geeksforgeeks.org/p5-js-soundfile-object-installation-and-methods/