1.3.0 • Published 5 years ago

fps-indicator v1.3.0

Weekly downloads
336
License
MIT
Repository
github
Last release
5 years ago

fps-indicator stable

Micro fps indicator for demo/tests.

fps-indicator

Usage

npm install fps-indicator

const createFps = require('fps-indicator');
let fps = createFps();

API

var fps = createFps(container|options?)

Create fps indicator from position string or options object:

OptionDescription
containerSelector or element to append, by default document.body.
periodUpdate period in ms, defaults to 500.
maxMax value of FPS, corresponding to upper bound, default is 90.
colorColor of indicator, by default is inherited.
positiontop-left, top-right, bottom-left (default), bottom-right.
styleCSS style string or css object. Eg. fps({style: 'padding: 20px; text-shadow: 0 0 2px black'})

Similar

stats.js — oldschool fps meter for apps, no colors customization. fpsmeter — good-looking fps meter, but no npm package.

1.3.0

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago