سؤال

I dont manage to make b.noise work in basil.js. I allways get the error "ReferenceError: Uint8Array does not have a constructor". What am I doing wrong?

function draw() {  

var xoff = 0.0;
var xincrement = 0.01;

xoff += xincrement;
var n = b.noise(xoff);
b.println(n); 

}

b.go();
هل كانت مفيدة؟

المحلول

We just closed this bug, so your code will be valid. The fix is already up on github. It will be included in the next release, which will be very soon.

نصائح أخرى

nothing! this is a bug in basil.js :( sorry! i've submitted the bug. https://github.com/basiljs/basil.js/issues/17

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top