| @@ -540,7 +540,8 @@ const attributionData = { | |||||
| { | { | ||||
| prefix: "./media/objects/", | prefix: "./media/objects/", | ||||
| files: [ | files: [ | ||||
| { name: "nail-polish.svg", source: null } | |||||
| { name: "nail-polish.svg", source: null }, | |||||
| { name: "shot-glass.svg", source: null }, | |||||
| ], | ], | ||||
| authors: [ | authors: [ | ||||
| "chemicalcrux" | "chemicalcrux" | ||||
| @@ -0,0 +1,15 @@ | |||||
| <?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" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | |||||
| viewBox="0 0 138 166" style="enable-background:new 0 0 138 166;" xml:space="preserve"> | |||||
| <style type="text/css"> | |||||
| .st0{opacity:0.5;} | |||||
| </style> | |||||
| <g id="Layer_3" class="st0"> | |||||
| <polyline points="7,0 131,0 111,137 27,138 "/> | |||||
| </g> | |||||
| <g id="Layer_2"> | |||||
| <path d="M131,0c0,0-18,104-22,107s-23,11-40,11s-36-8-40-11S7,0,7,0H0c0,0,18,146,20,156s49,10,49,10s47,0,49-10S138,0,138,0H131z" | |||||
| /> | |||||
| </g> | |||||
| </svg> | |||||
| @@ -115,6 +115,21 @@ function makeObjects() { | |||||
| } | } | ||||
| ) | ) | ||||
| }); | }); | ||||
| results.push({ | |||||
| name: "Shot Glass", | |||||
| constructor: () => makeObject( | |||||
| "Shot Glass", | |||||
| { | |||||
| bottle: { | |||||
| height: math.unit(2 + 3/8, "inches"), | |||||
| mass: math.unit(75, "g"), | |||||
| image: { source: "./media/objects/shot-glass.svg" }, | |||||
| name: "Bottle" | |||||
| } | |||||
| } | |||||
| ) | |||||
| }); | |||||
| results.sort((b1, b2) => { | results.sort((b1, b2) => { | ||||
| e1 = b1.constructor(); | e1 = b1.constructor(); | ||||