0.1.1 • Published 7 years ago
react-armory-pythagoras-tree v0.1.1
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.