This project is a template for creating new projects that use the HTML5 Canvas API.
It has the following features:
-
index.html
andscript.ts
work together to create aCanvasRenderingContext2D
. -
style.css
provides CSS styling information for the HTML. -
Vector.ts
provides a starting point for a 2D Vector class. -
Vector.spec.ts
provides unit tests for theVector
class. -
tests.html
andtests.ts
work together to run the Jasmine unit testing framework. -
README.md
provides this Markdown description of this project. -
package.json
provides technical information for running this project and descriptive information for publishing to the STEMC arXiv.
-
Using the Project Menu, copy this project to a new project and give your project its own title. You should also use the Labels and Tags dialog to set yourself as the author. Finally, it is a good idea to use the Settings dialog to give your project a name such as
stemcstudio-my-awesome-project
. Thestemcstudio-
prefix is merely a convention to identify your project as coming from the STEMCstudio community. -
A search for HTML5 Canvas on the internet will yield many resources providing documentation and examples.
-
Expect to modify
script.ts
. You are encouraged to make your project modular by creating new files when appropriate, making them into ES6 modules usingexport
statements, and importing them into other modules using theimport
statement.