Skip to content

guitar9/gl-react-imagefilters

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gl-react-imagefilters

Greenkeeper badge Image filters for gl-react and gl-react-native

Props

  • children (required): the content to negate.
  • sepia: optionally the intensity of the effect. 1.0 is normal. higher than 1 will add sepia.
  • hue: optional input to adjust the hue filter (Default: 0 )
  • blur: optional input to adjust the blur filter (Default: 0 )
  • sepia: optional input to adjust the sepia filter (Default: 0 )
  • sharpen: optional input to adjust the sharpen filter (Default: 0 )
  • negative: optional input to adjust the negative filter (Default: 0 )
  • contrast: optional input to adjust the contrast filter (Default: 1 )
  • saturation: optional input to adjust the saturation filter (Default: 1 )
  • brightness: optional input to adjust the brightness filter (Default: 1 )
  • temperature: optional input to adjust the temperature filter (Default: 6500, Normal range: 2000-12000 )

Usage Examples

var ImageFilter = require("gl-react-imagefilters");
// or
import ImageFilter from "gl-react-imagefilters";
<Surface width={300} height={300}>
   <ImageFilter sepia={3} blur={2}>...</ImageFilter>
</Surface>
<Surface width={300} height={200}>
   <ImageFilter sepia={3} blur={2}>
    <GLImage
      source="https://unsplash.it/200/300"
      imageSize={{ width: 300, height: 200 }}
      resizeMode="cover" />
   </ImageFilter>
</Surface>

About

Image filters for gl-react and gl-react-native

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%