chaos/scripts/controls.js

35 lines
852 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
import * as React from 'react';
/**
* Render app controls
*/
export class Controls extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return <aside>
<header>
<a href="/">
<img src="images/avatar.jpg" alt="Photo de Mattéo" />
<span>Mattéo Delabre </span><br />
Back to home
</a>
</header>
<h1>The Chaos Game</h1>
<h3>Creating fractals with the chaos game</h3>
Sommets <input id="vertices" type="range" min="3" max="12" step="1" defaultValue="3" /><br />
Fraction 1/<input id="fraction" type="range" min="1" max="6" step="0.01" defaultValue="2" />
</aside>;
}
}