Skip to content

Commit a1ac6da

Browse files
committed
version 1.7
1 parent e558266 commit a1ac6da

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.DS_Store

2 KB
Binary file not shown.

js/.DS_Store

0 Bytes
Binary file not shown.

js/basic-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ basicEditor.runCodeAndRefresh = function() {
104104

105105
basicEditor.startFirst = function() {
106106

107-
selectBox(basicEditor.box.boxPreview);
107+
setDefaultContainerBox(basicEditor.box.boxPreview);
108108
page = basicEditor.box.boxPreview;
109109

110110
}

js/moving-circles.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ movingCircles.MOVE_TIME_MIN = "30s"
66

77
movingCircles.create = function(box) {
88

9-
for (var i = 0; i < 5; i++ ) {
9+
for (var i = 0; i < 3; i++ ) {
1010

1111
// BOX: dot with motion
1212
var randomSize = random(200, 700)
13-
box.b1 = createBox(0, 0, randomSize, randomSize)
13+
box["b" + i] = createBox(0, 0, randomSize, randomSize)
1414
box.add(that)
1515
that.color = "#141414"
1616
that.round = 600
1717
// that.opacity = random(2, 6) / 100
1818
that.opacity = 0.04
1919
that.startPoint = {}
20-
that.startPoint.left = random(0, page.width + (box.b1.width * 2)) - box.b1.width
21-
that.startPoint.top = random(0, page.height + (box.b1.height * 2)) - box.b1.height
20+
that.startPoint.left = random(0, page.width + (box["b" + i].width * 2)) - box["b" + i].width
21+
that.startPoint.top = random(0, page.height + (box["b" + i].height * 2)) - box["b" + i].height
2222
that.left = that.startPoint.left
2323
that.top = that.startPoint.top
2424
that.setMotion("top " + movingCircles.MOVE_TIME_MIN + ", left " + movingCircles.MOVE_TIME_MIN)

0 commit comments

Comments
 (0)