Socket
Socket
Sign inDemoInstall

canvas-starfield

Package Overview
Dependencies
0
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    canvas-starfield

A canvas rendered starfield that twinkles and moves.


Version published
Weekly downloads
64
decreased by-57.62%
Maintainers
2
Install size
6.99 kB
Created
Weekly downloads
 

Readme

Source

canvas-starfield

A canvas rendered starfield.

Install

npm install canvas-starfield

Getting Started


var Starfield = require('canvas-starfield')
var sf = new Starfield({
  canvas: '#starfield-canvas', // string selector or HTML element
  numStars: 800,               // default 500
  dx: 0.05,                    // x speed of stars in px/frame, default 0.05
  dy: 0.025,                   // y speed of stars in px/frame, default 0.05
  maxRadius: 2,                // maximum star radius in px
  shootingStarInterval: 5     // time in seconds between shooting stars (omit field to disable shooting stars)
})

sf.start()

Keywords

FAQs

Last updated on 05 Nov 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc