Could you give me an example of what's not working that you expect?
I just tried and this works...
var d = require("https://raw.githubusercontent.com/OmegaVoid/EspruinoDocs/master/modules/dane_arwes.js");
var x = d.create(1,2,3);
print(x.C);
/*{
color: {
primary: {...*/
But one thing I can see is you've got:
function drawTopLeftCorner(x, y) {
g.setColor(this.C.color.primary.base);
But drawTopLeftCorner isn't a method - it's just a bare function. So in that case, this won't point to the object and you won't find C...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Could you give me an example of what's not working that you expect?
I just tried and this works...
But one thing I can see is you've got:
But
drawTopLeftCorner
isn't a method - it's just a bare function. So in that case,this
won't point to the object and you won't findC
...