浏览代码

Add nail polish

tags/v0.1.0
Fen Dweller 5 年前
父节点
当前提交
6ee6e6c13d
共有 3 个文件被更改,包括 31 次插入0 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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;
}

正在加载...
取消
保存