• 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.cĀ­om/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...

  • that works, thanks! But do I need to make the Corner draw functions into public methods or is there some way to make them into private methods?

About

Avatar for OmegaRogue @OmegaRogue started