0.1.5 • Published 3 years ago

pixi-autofit-y v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

AutoFitY for filters in PixiJS

This plugin for PIXI.JS helps automatically fit by height filter`s media: images and videos.

If you try to enable standard option autoFit, you will find that it may deform your original video.

This module will help you to solve this problem.

Firstly you need to import this module.

import {applyFsMixins} from "pixi-autofit-y";

Then initiate this function:

applyFsMixins();

Creating some filter:

Filter = new PIXI.Filter(transition.vertex, transition.fragment, transition.uniform);

Enable autoFit by height:

Filter.autoFitY = true;

Then you need to define your original video/image size:

Filter.autoFitWidth = 1920; Filter.autoFitHeight = 1080;

0.1.4

3 years ago

0.1.3

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago