Update 3.md

This commit is contained in:
Gaëtan Renaudeau 2015-08-31 11:14:11 +02:00
parent 09df1607b3
commit 0cdf537e39

View File

@ -1,6 +1,9 @@
# Hue Rotate on Text+Image
`gl-react-native` not only allows to add effects on top of images but also on top of **any** content. This example shows the Hue rotation effect on top of **texts and image**.
`gl-react` not only allows to add effects on top of images but also on top of **any** content. This example shows the Hue rotation effect on top of **texts and image**.
**`gl-react-native` version:**
```html
<HueRotate
@ -13,6 +16,23 @@
</HueRotate>
```
**`gl-react` version:** (using `react-canvas`)
```html
<HueRotate
width={256}
height={180}
hue={hue}>
<ReactCanvasContentExample width={256} height={180} text={text} />
<Surface width={256} height={180} top={0} left={0}>
<Image src="http://i.imgur.com/qVxHrkY.jpg" style={{ width: 256, height: 244, top: 0, left: 0 }} />
<Text style={styles.demospan1}>Throw me to the wolves</Text>
<Text style={styles.demospan2}>and I will return</Text>
<Text style={styles.demospan3}>{text}</Text>
</Surface>
</HueRotate>
```
![](3.gif)
## Implementation