Author: | tameemi |
---|---|
Views Total: | 6,690 views |
Official Page: | Go to website |
Last Update: | August 31, 2018 |
License: | MIT |
Preview:

Description:
teslahud.js is a JavaScript library used to render a Tesla-inspired speedometer on an HTML5 canvas.
How to use it:
Create a canvas element for the speedometer.
<canvas id="canvas"></canvas>
Download and import the teslahud.js library.
<script src="teslahud.js"></script>
Render a speedometer on the canvas.
// drawSpeedo(speed, gear, rpm, topSpeed) drawSpeedo(120,4,.8,160);