Tesla Style Speedometer In JavaScript – teslahud.js

Category: Chart & Graph , Javascript | August 31, 2018
Author: tameemi
Views Total: 4,524 views
Official Page: Go to website
Last Update: August 31, 2018
License: MIT

Preview:

Tesla Style Speedometer In JavaScript – teslahud.js

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);

You Might Be Interested In:


Leave a Reply