Table of Contents
- MotorCortex-Tv
- Intro / Features
- Getting Started
- Creating Incidents
- Adding Incidents in your clip
- Contributing
- License
- Sponsored by
Using MotorCortex-Τv your clip will look like a TV without signal.
This Plugin exposes two incidents:
- TVNoise
- ImageGlitch
$ npm install --save @donkeyclip/motorcortex-tv
# OR
$ yarn add @donkeyclip/motorcortex-tv
import { loadPlugin } from "@donkeyclip/motorcortex";
import tvDefinition from "@donkeyclip/motorcortex-tv";
const TV = loadPlugin(tvDefinition);
const tvNoise = new TV.TVNoise(
{
width: 800,
height: 600,
sound: true,
},
{
duration: 6000,
selector: "#container",
}
);
Name | Are | Values |
---|---|---|
width | width of the canvas | num |
height | height of the canvas | num |
duration | the duration of the effect | num |
sound | iclude noise sound or not | bool |
const imageGlitch = new TV.ImageGlitch(
{
imgUrl:
"https://images.hdqwalls.com/wallpapers/minimal-sunset-landscape-4k-w5.jpg",
},
{
selector: "#glitchContainer",
containerParams: {
width: "800px",
height: "600px",
},
}
);
Name | Are | Values |
---|---|---|
imgUrl | the image url to apply the effect on | url |
clipName.addIncident(incidentName,startTime);
In general, we follow the "fork-and-pull" Git workflow, so if you want to submit patches and additions you should follow the next steps:
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes