gre / gl-react-contrast-saturation-brightness

Universal gl-react which combines Contrast, Saturation and Brightness effects
http://gl-react-contrast-saturation-brightness.surge.sh/
7 stars 7 forks source link

gl-react-contrast-saturation-brightness

Universal gl-react contrast-saturation-brightness effect.

Props

in contrast, saturation, brightness props, 0.0 means 0% and 1.0 means 100%.

Usage Examples

var ContrastSaturationBrightness = require("gl-react-contrast-saturation-brightness").ContrastSaturationBrightness;
// or
import {ContrastSaturationBrightness} from "gl-react-contrast-saturation-brightness";

Grayscale

<ContrastSaturationBrightness saturation={0.0}>...</ContrastSaturationBrightness>

Some contrast and brightness

<ContrastSaturationBrightness contrast={1.4} brightness={1.2}>...</ContrastSaturationBrightness>