Skip to content

A Sprite class for p5js that makes it easy to move from coding Scratch to coding p5js

Notifications You must be signed in to change notification settings

ohiofi/Scratch2p5js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Scratch2p5js

A Sprite class for p5.js that makes it easy to move from coding Scratch to coding p5.js

How to contribute:

  • 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

Scratch2p5js API

Constructor Summary

Method Summary

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() ???

About

A Sprite class for p5js that makes it easy to move from coding Scratch to coding p5js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5