Initial sim implementation
This commit is contained in:
9
svgicons/color.svg
Normal file
9
svgicons/color.svg
Normal file
@ -0,0 +1,9 @@
|
||||
<svg id="svg41" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.4 17.9">
|
||||
<title>color</title>
|
||||
<g id="WH-colorsensor">
|
||||
<g id="Group_4" data-name="Group 4">
|
||||
<path id="Subtraction_19" data-name="Subtraction 19" d="M17.6,19H2.4c-.6,0-1-.3-1-.7v-2.4H.7a.43.43,0,0,1-.4-.4V4.85a.43.43,0,0,1,.4-.4h.7V1.75c0-.4.5-.7,1-.7H17.6c.6,0,1,.3,1,.7v2.7h.7a.43.43,0,0,1,.4.4v10.6a.43.43,0,0,1-.4.4h-.7v2.4C18.7,18.65,18.2,19,17.6,19ZM10,3.25A5.09,5.09,0,0,0,6.4,12a2.2,2.2,0,0,0-.1.8,3.7,3.7,0,0,0,7.4,0,2.2,2.2,0,0,0-.1-.8,5.54,5.54,0,0,0,1.5-3.6A5,5,0,0,0,10,3.25Zm8.9,7.5v3.3h.4v-3.3Zm-18.1,0v3.3h.4v-3.3Zm18.1-4.6v3.3h.4V6.15ZM.8,6.15v3.3h.4V6.15Z" transform="translate(-0.3 -1.05)" style="fill: #fff"/>
|
||||
<path id="Subtraction_18" data-name="Subtraction 18" d="M10.1,15.65a2.9,2.9,0,0,1-2.9-2.9,4.25,4.25,0,0,1,.2-1.1,4.42,4.42,0,0,1-1.6-3.4,4.3,4.3,0,0,1,8.6,0,4.42,4.42,0,0,1-1.6,3.4,3.59,3.59,0,0,1,.2,1.1A3,3,0,0,1,10.1,15.65Zm0-4a1.1,1.1,0,1,0,1.1,1.1,1.27,1.27,0,0,0-1.1-1.1Zm0-5.1a2,2,0,1,0,2,2,2.15,2.15,0,0,0-2-2Z" transform="translate(-0.3 -1.05)" style="fill: #fff"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
18
svgicons/generateIcons.js
Normal file
18
svgicons/generateIcons.js
Normal file
@ -0,0 +1,18 @@
|
||||
const webfontsGenerator = require('webfonts-generator');
|
||||
|
||||
webfontsGenerator({
|
||||
files: [
|
||||
'./ultrasonic.svg',
|
||||
"./color.svg",
|
||||
"./touch.svg",
|
||||
"./gyro.svg"
|
||||
],
|
||||
dest: '../docs/static/fonts/icons/',
|
||||
round: 10
|
||||
}, function(error) {
|
||||
if (error) {
|
||||
console.log('Fail!', error);
|
||||
} else {
|
||||
console.log('Done!');
|
||||
}
|
||||
})
|
8
svgicons/gyro.svg
Normal file
8
svgicons/gyro.svg
Normal file
@ -0,0 +1,8 @@
|
||||
<svg id="svg41" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.98 27.11">
|
||||
<title>gyro</title>
|
||||
<g id="WH-gyro">
|
||||
<g id="gyro_box_small" data-name="gyro box small">
|
||||
<path id="Subtraction_12" data-name="Subtraction 12" d="M22.76,30.35H15.55a4,4,0,0,1-.89-.2H12.78a.87.87,0,0,1-.87-.87v-2h-.34a.34.34,0,0,1-.34-.33V6.35A.34.34,0,0,1,11.57,6h.34V4.13a.87.87,0,0,1,.87-.88h5.63v.27h1.52V3.25H25.6a.87.87,0,0,1,.87.88V6h.41a.34.34,0,0,1,.34.34V26.92a.34.34,0,0,1-.34.33h-.41v2a.87.87,0,0,1-.87.87H23.76C23.68,30.28,22.91,30.35,22.76,30.35ZM15.44,7l-1.68.47a.68.68,0,0,0-.2.07.16.16,0,0,0-.1.14.14.14,0,0,0,.1.13L14,8.1a5.19,5.19,0,0,0-.7,1.9,5.77,5.77,0,0,0,1.17,4.44c.7-.51,1.14-.81,1.14-.81a5,5,0,0,1-.7-1.51,4.27,4.27,0,0,1,.37-3.28l.33.17h0l.06,0a.24.24,0,0,0,.14.05A.12.12,0,0,0,16,9a.43.43,0,0,0,0-.33L15.44,7Zm7.62,1.82h0a4.27,4.27,0,0,1,.36,3.32,5.09,5.09,0,0,1-.7,1.47l.11.08,1,.73A5.85,5.85,0,0,0,25,10a5.19,5.19,0,0,0-.7-1.9l.33-.19.14-.08a.15.15,0,0,0,.1-.12.18.18,0,0,0-.1-.15.68.68,0,0,0-.2-.07L22.92,7s-.08.28-.18.59-.28.87-.35,1.1a.42.42,0,0,0,0,.33.12.12,0,0,0,.1.05.33.33,0,0,0,.14,0l0,0,.37-.19Zm-3.87.81A1.35,1.35,0,1,0,20.54,11a1.35,1.35,0,0,0-1.35-1.35h0Z" transform="translate(-11.23 -3.25)" style="fill: #fff"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
25
svgicons/touch.svg
Normal file
25
svgicons/touch.svg
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1"
|
||||
id="svg41" inkscape:export-filename="C:\gh\pxt-ev3\libs\core\jres\icons\colorSensor-icon.png" inkscape:export-xdpi="319.10471" inkscape:export-ydpi="319.10471" inkscape:version="0.91 r13725" sodipodi:docname="touch.svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40 40"
|
||||
style="enable-background:new 0 0 40 40;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FFFFFF;}
|
||||
</style>
|
||||
<sodipodi:namedview bordercolor="#666666" borderopacity="1" fit-margin-bottom="0" fit-margin-left="0" fit-margin-right="0" fit-margin-top="0" gridtolerance="10" guidetolerance="10" id="namedview43" inkscape:current-layer="svg41" inkscape:cx="-15.45754" inkscape:cy="12.272499" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-height="1005" inkscape:window-maximized="1" inkscape:window-width="1676" inkscape:window-x="4" inkscape:window-y="1" inkscape:zoom="7.072009" objecttolerance="10" pagecolor="#bf0b0b" showgrid="false">
|
||||
</sodipodi:namedview>
|
||||
<g id="WH-touch_1_" transform="translate(3368.95,8196.4)">
|
||||
<path id="Subtraction_13_1_" inkscape:connector-curvature="0" class="st0" d="M-3334.7-8159.7h-29.3c-1.1,0-2.1-0.6-2.1-1.5v-4.5
|
||||
h-1.3c-0.4,0-0.8-0.4-0.8-0.8v-20.4c0-0.4,0.4-0.8,0.8-0.8h1.3v-5.3c0-0.8,0.9-1.5,2.1-1.5h11.1v1.5h6.6v-1.5h11.5
|
||||
c1.1,0,2.1,0.6,2.1,1.5v5.3h1.3c0.4,0,0.8,0.4,0.8,0.8v20.4c0,0.4-0.4,0.8-0.8,0.8h-1.3v4.5
|
||||
C-3332.7-8160.3-3333.6-8159.7-3334.7-8159.7L-3334.7-8159.7z M-3354.8-8172.6c0.6,0.9,1.3,1.5,2.1,2.1v8.5h6.4v-8.5
|
||||
c0.9-0.6,1.5-1.3,2.1-2.1h8.7v-6.4h-8.5c-0.6-0.9-1.3-1.7-2.3-2.3v-8.7h-6.4v8.7c-0.9,0.6-1.7,1.3-2.3,2.3h-8.5v6.4H-3354.8
|
||||
L-3354.8-8172.6z M-3332.3-8175.6v6.2h0.8v-6.2H-3332.3z M-3367.2-8175.6v6.2h0.8v-6.2H-3367.2z M-3332.3-8184.5v6.2h0.8v-6.2
|
||||
H-3332.3z M-3367.2-8184.5v6.2h0.8v-6.2H-3367.2z M-3349.5-8171.8c-0.6,0-0.9,0-1.3-0.2v-1.5c0-0.4-0.2-0.6-0.6-0.6l0,0h-1.5
|
||||
c-0.2-0.4-0.4-0.9-0.4-1.5c0-0.6,0-1.1,0.4-1.5h1.3c0.8,0,0.8-0.9,0.8-0.9l0,0c0-0.2,0-0.8,0-1.3c0.4-0.2,0.9-0.2,1.3-0.2
|
||||
c0.6,0,1.1,0,1.7,0.2c0,0.4,0,0.9,0,1.3l0,0v0.2c0,0.4,0.2,0.6,0.6,0.6c0,0,0,0,0.2,0l0,0h1.5c0.4,0.4,0.4,0.9,0.4,1.5
|
||||
s-0.2,1.1-0.4,1.5l0,0c-0.4,0-0.9,0.2-1.3,0.2c-0.4,0-0.8,0.2-0.8,0.6v1.5c-0.6,0.2-0.9,0.2-1.5,0.2
|
||||
C-3349.5-8171.8-3349.5-8171.8-3349.5-8171.8z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.7 KiB |
25
svgicons/ultrasonic.svg
Normal file
25
svgicons/ultrasonic.svg
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1"
|
||||
id="svg41" inkscape:export-filename="C:\gh\pxt-ev3\libs\core\jres\icons\colorSensor-icon.png" inkscape:export-xdpi="319.10471" inkscape:export-ydpi="319.10471" inkscape:version="0.91 r13725" sodipodi:docname="ultrasonic.svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 20 20"
|
||||
style="enable-background:new 0 0 20 20;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FFFFFF;}
|
||||
</style>
|
||||
<sodipodi:namedview bordercolor="#666666" borderopacity="1" gridtolerance="10" guidetolerance="10" id="namedview43" inkscape:current-layer="svg41" inkscape:cx="8.3705223" inkscape:cy="14.117717" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-height="1005" inkscape:window-maximized="1" inkscape:window-width="1676" inkscape:window-x="4" inkscape:window-y="1" inkscape:zoom="10.001331" objecttolerance="10" pagecolor="#d51c1c" showgrid="false">
|
||||
</sodipodi:namedview>
|
||||
<g id="WH-ultrasonic_1_" transform="matrix(0.45168588,0,0,0.45168588,1570.3489,3840.7479)">
|
||||
<g id="Group_56_1_">
|
||||
<path id="Subtraction_10_1_" inkscape:connector-curvature="0" class="st0" d="M-3447-8473.3h-15.1c2.7-1.7,4.3-4.7,4.3-7.9
|
||||
c0-1.8-0.5-3.5-1.4-5s-2.2-2.6-3.7-3.4h16.8c-1.5,0.8-2.8,1.9-3.7,3.4s-1.4,3.2-1.4,5C-3451.3-8478-3449.7-8475-3447-8473.3
|
||||
L-3447-8473.3L-3447-8473.3z"/>
|
||||
</g>
|
||||
<path id="Subtraction_8_1_" inkscape:connector-curvature="0" class="st0" d="M-3467.1-8472.1c-5,0-9.1-4.1-9.1-9.1
|
||||
s4.1-9.1,9.1-9.1s9.1,4.1,9.1,9.1C-3458.1-8476.2-3462.1-8472.1-3467.1-8472.1z M-3467.1-8484.8c-2,0-3.6,1.6-3.6,3.6
|
||||
s1.6,3.6,3.6,3.6s3.6-1.6,3.6-3.6S-3465.1-8484.8-3467.1-8484.8z"/>
|
||||
<path id="Subtraction_9_1_" inkscape:connector-curvature="0" class="st0" d="M-3441.9-8472.1c-5,0-9.1-4.1-9.1-9.1
|
||||
s4.1-9.1,9.1-9.1s9.1,4.1,9.1,9.1C-3432.9-8476.2-3436.9-8472.1-3441.9-8472.1z M-3441.9-8484.8c-2,0-3.6,1.6-3.6,3.6
|
||||
s1.6,3.6,3.6,3.6s3.6-1.6,3.6-3.6S-3439.9-8484.8-3441.9-8484.8z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
Reference in New Issue
Block a user