I need to multiply a float array with a float value without looping over every item. I checked internet a bit and tried some stuff. array.map(number);
looks okay to me but Im getting an error:
cannot invoke map(float) on the array type float[]
looks like i need another array to multiply it with but I dont want to loop to create another array.
im beginner to processing.js any possible solution is appreciated
edit: just checked it doesnt let me multiply(scale) float[] with float[] neither. I dont know what to do