+ 1

What does the ctx. function?

22nd Dec 2016, 1:10 PM
Claudio
Claudio - avatar
3 Réponses
+ 4
Nothing, because it doesn't exist: in Html there isn't any function... There are functions in javascript ( so, inside Html ), but ctx is not a built-in one, then only three letters from an identifier don't permit to answer to you :P Can you maybe post more informations about the context ^^ ?
22nd Dec 2016, 1:15 PM
visph
visph - avatar
+ 4
It does nothing. It's just short for "context" and is used with canvas e.g. It's common practice ;-) Nothing else I hope this helps
22nd Dec 2016, 1:18 PM
Daniel Sattler
Daniel Sattler - avatar
+ 4
It is used as object for canvas element in some internet tutorials but you can replace it with other var name...
22nd Dec 2016, 1:18 PM
Valen.H. ~
Valen.H. ~ - avatar