diff --git a/chaostest/connected-lines.html b/chaostest/connected-lines.html
index cdc8de4..7be22e4 100644
--- a/chaostest/connected-lines.html
+++ b/chaostest/connected-lines.html
@@ -6,11 +6,18 @@
+
@@ -44,6 +103,8 @@ window.onload = function() {
+
+
diff --git a/chaostest/connected-lines.js b/chaostest/connected-lines.js
index 50350e4..144b6da 100644
--- a/chaostest/connected-lines.js
+++ b/chaostest/connected-lines.js
@@ -1,8 +1,10 @@
function connected_lines_get_rnd_params() {
return {
- start: new paper.Point(Math.random(), Math.random()),
- offs: new paper.Point(0.05, 0.05),
+ start_x: Math.random(),
+ start_y: Math.random(),
+ offs_x: 0.05,
+ offs_y: 0.05,
num_steps: 5,
};
}
@@ -13,10 +15,13 @@ function connected_lines(params) {
var params = connected_lines_get_rnd_params();
}
+ var start = new paper.Point(params.start_x, params.start_y);
+ var offs = new paper.Point(params.offs_x, params.offs_y);
+
var lines = [];
for(var i=0; i<2; i++) {
- var x = params.start.x + i*params.offs.x;
- var y = params.start.y + i*params.offs.y;
+ var x = start.x + i*offs.x;
+ var y = start.y + i*offs.y;
var path = new paper.Path({strokeWidth: 5, strokeColor: 'black'});
for(var s=0; s