Domain coloring is a way to visualize complex functions. This library provides a component that implements one possible coloring scheme, with the help of three.js.
z^2 + 2 * z
rendered using the component:
import DomainColoring from 'react-domain-coloring';
// ...
const domain = {
x: [-1, 1],
y: [-2 * Math.PI, 2 * Math.PI]
};
<DomainColoring width={300} height={300}
domain={domain} func="z^2 + 2 * z" />
$ npm install
$ npm start
Then navigate to http://localhost:8080