react-armory-pythagoras-tree

0.1.1 • Public • Published

react-armory-pythagoras-tree

This package is designed to help you create a Pythagoras Tree. It exports a number of helper functions, along with a complete PythagorasTree component.

Exports

  • getBoxStyle(n)
  • interpolateColor(x, r, g, b)
  • <PythagorasTree sway={...} sprout={...} />

Why?

Why create a package for this? Why the hell not. But also, it is used within an introduction to React:

Learn React From The Comfort Of Your Web Browser

Try it live

You can see a usage example and try the component out at React Armory.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-armory-pythagoras-tree

      Weekly Downloads

      2

      Version

      0.1.1

      License

      MIT

      Last publish

      Collaborators

      • jamesknelson