This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Draw a butterfly diagram of the given size in the given svg element. | |
| // | |
| // Example usage: | |
| // | |
| // var svg = d3.select("body").append("svg").attr("width", 500).attr("height", 500); | |
| // draw_butterfly_graph(svg, 3); | |
| // | |
| // Requires d3.js 4. | |
| // | |
| function draw_butterfly_graph(svg, logn) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Aperiodic Improved Perlin Noise | |
| // James Bird (jbrd.github.io) | |
| // | |
| // A version of Ken Perlin's Improved Perlin Noise, rewritten in C++ and | |
| // expanded to use a higher precision (but more expensive) initial hashing | |
| // function to overcome the 256-unit repetition in the reference code. | |
| // | |
| // Adapted from Ken Perlin's Improved Perlin Noise Code: | |
| // http://mrl.nyu.edu/~perlin/noise/ |