Adds a class attribute to the element using a given string.
Calling myElement.class()
without an argument returns a string with its current classes.
Examples
Syntax
class(class)
class()
Parameters
class
String: class to add.
Returns
String: element's classes, if any.
Notice any errors or typos? Please let us know. Please feel free to edit src/dom/p5.Element.js and open a pull request!