[Try to] use prototype.apply for class Graphics #1344
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2019-11-16 by @gfwilliams
Almos :) The first argument of If you do |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2019-11-16 by @MaBecker Thanks :) So g.drawString() also can be called this way |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-11-16 by @MaBecker
Working on a Pixl,js with firmware 2v04 .
Sometimes parameter for function are stored in arrays and apply is used to convert array to parameter.
Try to use this for g.drawString()
Screen does not show "Hello".
Is this the correct syntax to use it in class Graphics?
Beta Was this translation helpful? Give feedback.
All reactions