We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fdbbbd commit 2bc77a8Copy full SHA for 2bc77a8
src/helpers.js
@@ -340,13 +340,13 @@ define(function (require) {
340
var safeBins = p5.prototype.safeBins = function(bins) {
341
let safeBins = 1024;
342
if(typeof(bins)==="string"){
343
- console.log("the value of bins must be power of two and between 16 and 1024");
+ console.warn("the value of bins must be power of two and between 16 and 1024");
344
return safeBins
345
}
346
if(bins && bins>=16 && bins<=1024 && Math.log2(bins)%1===0 )
347
return bins;
348
else {
349
350
351
352
0 commit comments