From 108a4af74c8cc6878f020e95ea5a4ef73355833b Mon Sep 17 00:00:00 2001 From: Frederic Date: Thu, 12 Dec 2019 23:52:20 +0100 Subject: [PATCH] an eternal plotted braid --- chaostest/braid.html | 65 ++++++++++++++++++++++++++++++++++++++++++++ chaostest/braid.js | 49 +++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 chaostest/braid.html create mode 100644 chaostest/braid.js diff --git a/chaostest/braid.html b/chaostest/braid.html new file mode 100644 index 0000000..5a4aa84 --- /dev/null +++ b/chaostest/braid.html @@ -0,0 +1,65 @@ + +Braid + + + + + + + + + + + + + + + +
+ + +
+
+ + + + diff --git a/chaostest/braid.js b/chaostest/braid.js new file mode 100644 index 0000000..877b9e1 --- /dev/null +++ b/chaostest/braid.js @@ -0,0 +1,49 @@ + +function braid_get_rnd_params() { + return { + num_points: 10, + point_noise: 0.6, + num_connections: 8, + }; +} + + +function braid(params) { + if(typeof params == 'undefined') { + var params = braid_get_rnd_params(); + } + + let points = []; + for(let i=0; i