New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@empirica/random-dot-kinematogram

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empirica/random-dot-kinematogram

React component of a Random Dot Kinematogram for the Empirica experiment platform.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Random Dot Kinematogram

This package contains a React component for a Random Dot Kinematogram (RDK) build with the P5 library.

In RDKs, a certain percentage of dots are designated as “signal” to move in one coherent direction, and the remaining percentage of dots are designated as “noise” to move in random directions.

Usage

Simply add the <RDK> component to your React tree.

import RDK from "@empirica/random-dot-kinematogram";

//...

<RDK coherence={0.5} direction="right" />;

RDK expects 2 props:

  • direction: "right" or "left" for the direction the signal
  • coherence: a value between 0 (incoherent) and 1 (coherent) for the noise

Credits

This package is based on the work of @josephbb. Thank you @josephbb for allowing us to share your work with the community.

Keywords

FAQs

Package last updated on 14 Dec 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