const React = require("react"); const Slider = require("./Slider"); const HelloGL = require("./HelloGL"); const Saturation = require("./Saturation"); //const HueRotate = require("./HueRotate"); const PieProgress = require("./PieProgress"); const OneFingerResponse = require("./OneFingerResponse"); const AnimatedHelloGL = require("./AnimatedHelloGL"); //const ReactCanvasContentExample = require("./ReactCanvasContentExample"); class Simple extends React.Component { constructor (props) { super(props); this.state = { saturationFactor: 1, //hue: 0, progress: 0.2 //text: "and I will return leading the pack" }; } render () { const { saturationFactor, //hue, //text, progress } = this.state; return

Welcome to GL React!

1. Hello GL

2. Saturate an Image

this.setState({ saturationFactor })} />
{/*

3. Hue Rotate on a Canvas

this.setState({ hue })} /> this.setState({ text: e.target.value })} value={text} />
*/} 4. Progress Indicator
this.setState({ progress })} />
5. Mouse Responsive
6. Animation
; } } const styles = { container: { width: "400px", backgroundColor: "#F9F9F9" }, title: { fontSize: "20px", textAlign: "center", margin: "5px", marginBottom: "20px", fontWeight: "bold" }, demos: { marginLeft: "40px", width: "276px", marginBottom: "20px" }, demoTitle: { marginBottom: "16px", color: "#999", fontWeight: 300, fontSize: "20px" }, demo: { marginBottom: "20px", marginLeft: "20px" } }; React.render(, document.getElementById("container"));