Skip to content

Commit

Permalink
Add another sketch and sample
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimmons committed Jan 10, 2019
1 parent 43d029f commit 52abd14
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
<p align="center"><img width="75%" src="sample8.svg"></p>
<p align="center"><img width="75%" src="sample9.svg"></p>
<p align="center"><img width="75%" src="sample10.svg"></p>
<p align="center"><img width="75%" src="sample11.svg"></p>
1 change: 1 addition & 0 deletions docs/sample11.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions sketches/sketch008.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const {makeSketch} = require('./util');

makeSketch({x: 96, y: 96, z: 96}, {padFrac: 0.1}, (scene, ops) => {
ops.predicateFill(scene, 1, (x, y, z) => ((y % 8) < 1));
for (let i = 0; i < 200; i++) {
ops.randomShell(scene, 1);
}
for (let i = 0; i < 20; i++) {
ops.randomBox(scene, 0);
}
ops.topFrontCutaway(scene, 0.67);
});

0 comments on commit 52abd14

Please sign in to comment.