Skip to content

Commit

Permalink
Refine sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimmons committed Jan 17, 2019
1 parent f452561 commit 60f6d12
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sketches/sketch016.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
const {makeSketch} = require('./util');

makeSketch({x: 64, y: 64, z: 128}, {padFrac: 0.1}, (scene, ops) => {
for (let i = 0; i < 256; i++) {
for (let i = 0; i < 180; i++) {
ops.worm(scene, {x: Math.floor(64*Math.random()), y: Math.floor(64*Math.random()), z: (Math.random() < 0.5) ? 0 : 127}, 1+Math.floor(3*Math.random()), 2+Math.floor(2*Math.random()));
}

// ops.predicateFill(scene, 0, (x, y, z) => ((x % 16) < 7));
// ops.predicateFill(scene, 0, (x, y, z) => ((y % 16) < 7));
// ops.predicateFill(scene, 0, (x, y, z) => ((z % 16) < 15));
// ops.frontCutaway(scene, 0.5);
});

0 comments on commit 60f6d12

Please sign in to comment.