Browse Source

Add nail polish

tags/v0.1.0
Fen Dweller 5 years ago
parent
commit
6ee6e6c13d
3 changed files with 31 additions and 0 deletions
  1. +9
    -0
      media/attribution.js
  2. +7
    -0
      media/objects/nail-polish.svg
  3. +15
    -0
      presets/objects.js

+ 9
- 0
media/attribution.js View File

@@ -537,6 +537,15 @@ const attributionData = {

]
},
{
prefix: "./media/objects/",
files: [
{ name: "nail-polish.svg", source: null }
],
authors: [
"chemicalcrux"
]
},
{
prefix: "./media/objects/humans/",
files: [


+ 7
- 0
media/objects/nail-polish.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_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 70.63 170" style="enable-background:new 0 0 70.63 170;" xml:space="preserve">
<path d="M70.31,97c-2-5-10-9-18-9v-3h5c0,0-1-81-3-83s-14-2-19-2s-17,0-19,2s-3,83-3,83h5v3c-8,0-16,4-18,9c-2.1,5.25,7,67,7,68
s5,5,5,5h23h23c0,0,5-4,5-5S72.42,102.25,70.31,97z"/>
</svg>

+ 15
- 0
presets/objects.js View File

@@ -101,5 +101,20 @@ function makeObjects() {
)
});

results.push({
name: "Nail Polish",
constructor: () => makeObject(
"Nail Polish",
{
bottle: {
height: math.unit(3.25, "inches"),
mass: math.unit(66, "g"),
image: { source: "./media/objects/nail-polish.svg" },
name: "Bottle"
}
}
)
});

return results;
}

Loading…
Cancel
Save