Browse Source

Add gravel/sand/silt

tags/v0.1.0
Fen Dweller 5 years ago
parent
commit
251c019652
3 changed files with 35 additions and 0 deletions
  1. +1
    -0
      media/attribution.js
  2. +7
    -0
      media/objects/pebble.svg
  3. +27
    -0
      presets/objects.js

+ 1
- 0
media/attribution.js View File

@@ -578,6 +578,7 @@ const attributionData = {
{ name: "beer-bottle.svg", source: null },
{ name: "circle.svg", source: null },
{ name: "pencil.svg", source: null },
{ name: "pebble.svg", source: null },
],
authors: [
"chemicalcrux"


+ 7
- 0
media/objects/pebble.svg View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 79.02 45.91" style="enable-background:new 0 0 79.02 45.91;" xml:space="preserve">
<path d="M0.01,25.79c0,0,7.5,1.5,9,3s6.5,7.5,8,8s15-5,16-5s1.5,7.5,6,12s24.5,0.5,29,0s10.5-17.5,11-25s-26.5-17.5-27-18
s-32.5-1.5-33,0s-19.5,14.5-19,15C0.51,16.29,0.01,25.79,0.01,25.79z"/>
</svg>

+ 27
- 0
presets/objects.js View File

@@ -257,6 +257,33 @@ function makeObjects() {
}
)
});

results.push({
name: "Pebbles",
constructor: () => makeObject(
"Pebbles",
{
gravelGrain: {
height: math.unit(20, "mm"),
image: { source: "./media/objects/pebble.svg" },
name: "Grain of gravel",
rename: true
},
sandGrain: {
height: math.unit(0.5, "mm"),
image: { source: "./media/objects/pebble.svg" },
name: "Grain of sand",
rename: true
},
siltGrain: {
height: math.unit(0.03, "mm"),
image: { source: "./media/objects/pebble.svg" },
name: "Grain of silt",
rename: true
},
}
)
});
results.sort((b1, b2) => {
e1 = b1.constructor();


Loading…
Cancel
Save