You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yes, g is just built-in. I was going to have 'Pixl.getGraphics()' or something, but then I wanted people to be able to connect and start using it immediately without much typing, so I kept g as that's what pretty much all the graphics examples do anyway.

    I'll add a section on it to the Pixl reference at http://www.espruino.com/Pixl.js in the next few hours.

  • TBH - I'd prefer an explicit assignment myself - but understand the thinking. Hopefully no one uses 'g' as a variable name!

About

Avatar for Gordon @Gordon started