Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vf-timelinefx

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vf-timelinefx

JavaScript port of TimelineFX particle system

  • 2.5.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
30
Maintainers
1
Weekly downloads
 
Created
Source

timelinefx

JavaScript fork of the timelinefx lib.

Allows particle system effects created in the standalone TimelineFX tool to be loaded and run within a browser.

Basic usage:

  • Unzip TimelineFX .eff file containing xml and images.
  • Place those assets where they can be accessed from your javascript.
// Create particle manager and fx library
var particleManager = new ParticleManager( drawSprite, particle limit = 1000, layers = 1 );
EffectsLibrary.init();
EffectsLibrary.load( xml );

// Grab an effect prototype
var effectPrototype = EffectsLibrary.getEffect( "explosion" );
effectPrototype.compileAll();

// Create/spawn an effect instance
var currentEffectInstance = new Effect( effectPrototype, particleManager );
particleManager.addEffect( currentEffectInstance );``

A complete demo can be found here: http://factor43.com/projects/tfx/demo

Fork

This fork brings the timelinefxjs lib to ES6+ syntax & style. Eventually we will include typescript definitions.

There is only one major API change between this fork and gooddoggy's timelinefx, and that is that ParticleManager takes 3 arguments now, the first one being the drawSprite function.

FAQs

Package last updated on 31 Jan 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc