From 88c348afedc73bdcd3804883784dbbaaff7bde91 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Tue, 25 Feb 2020 14:52:09 -0500 Subject: [PATCH] Add pencils --- media/attribution.js | 3 ++- media/objects/pencil.svg | 6 ++++++ presets/objects.js | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 media/objects/pencil.svg diff --git a/media/attribution.js b/media/attribution.js index 3ecf3345..1a721b2a 100644 --- a/media/attribution.js +++ b/media/attribution.js @@ -565,7 +565,8 @@ const attributionData = { { name: "nail-polish.svg", source: null }, { name: "shot-glass.svg", source: null }, { name: "beer-bottle.svg", source: null }, - { name: "circle.svg", source: null } + { name: "circle.svg", source: null }, + { name: "pencil.svg", source: null }, ], authors: [ "chemicalcrux" diff --git a/media/objects/pencil.svg b/media/objects/pencil.svg new file mode 100644 index 00000000..042f5406 --- /dev/null +++ b/media/objects/pencil.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/presets/objects.js b/presets/objects.js index 36bbe8b6..dad83c1e 100644 --- a/presets/objects.js +++ b/presets/objects.js @@ -190,6 +190,21 @@ function makeObjects() { } ) }); + + results.push({ + name: "Pencil", + constructor: () => makeObject( + "Pencil", + { + pencil: { + height: math.unit(7.5, "inches"), + mass: math.unit(7, "g"), + image: { source: "./media/objects/pencil.svg" }, + name: "Pencil" + } + } + ) + }); results.sort((b1, b2) => { e1 = b1.constructor();