Skip to content

React component for domain coloring of complex-valued functions

Notifications You must be signed in to change notification settings

KattMingMing/react-domain-coloring

 
 

Repository files navigation

react-domain-coloring

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.

Example

z^2 + 2 * z rendered using the component:

domain coloring example

Usage

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" />

Development

$ npm install
$ npm start

Then navigate to http://localhost:8080

About

React component for domain coloring of complex-valued functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • HTML 1.8%