New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

famous-lagometer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

famous-lagometer

Lagometer for famo.us showing the FPS, animation-frames times and script times

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

famous-lagometer

Lagometer for famo.us showing the FPS, animation-frames times and script times.

lagometer

View the demo here

Getting started

Install using bower or npm:

bower install famous-lagometer

npm install famous-lagometer

Create lagometer:

var Lagometer = require('famous-lagometer/Lagometer');

var modifier = new Modifier({
    size: [100, 100],
    align: [1.0, 0.0],
    origin: [1.0, 0.0],
    transform: Transform.translate(-10, 10, 0)
});
var lagometer = new Lagometer({
    size: modifier.getSize() // required
});
this.add(modifier).add(lagometer);

Constructor options

Options that you can configure through the constructor:

{
    size: [100, 100],   // size, required!
    drawFrequency: 2,   // by default 2 times per second
    min: 0,             // minimum scale
    max: 34,            // max scale
    backgroundColor: 'rgba(200, 0, 0, 0.8)',
    borderColor: 'rgba(255, 0, 0, 0.8)',
    textColor: 'rgba(255, 255, 255, 0.8)',
    font: '28px Arial',
    frameColor: '#00FF00',
    scriptColor: '#BBBBFF'
};

Contribute

If you like this project and want to support it, show some love and give it a star.

Contact

© 2014/2015 - Hein Rutjes

Keywords

famo.us

FAQs

Package last updated on 03 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts