A Sprite class for p5.js that makes it easy to move from coding Scratch to coding p5.js
- Fork this repository
- Open your forked copy in Github Desktop by clicking the big, green Clone button, then Open In Desktop
- Add stuff to sprite.js and/or the README file
- Commit and Push your changes
- Create a Pull Request
| Return Type | Method and Args | Description |
|---|---|---|
| void | animate() | Method to animate the sprite |
| void | animationSpeed() | Method that sets the Animation Speed of the sprite |
| int | getHeight() | Method to return the height of the sprite |
| int | getImageWidth() | Method to return the width of the sprite's image |
| int | getRadius() | Method to return the radius of the sprite |
| int | getWidth() | Method to return the width of the sprite |
| int | getX() | Method to return the X value of the sprite |
| int | getY() | Method to return the Y value of the sprite |
| void | setX() | Method that sets X value of the sprite |
| void | setY() | Method that sets Y value of the sprite |
| void | show() | ??? |