google / blockly-android

Blockly for Android
Apache License 2.0
671 stars 209 forks source link

Need .png assets for mutator/comment/warning icons #591

Open AnmAtAnm opened 7 years ago

AnmAtAnm commented 7 years ago

See web SVG examples by importing the following:

<workspace>
  <block type="procedures_ifreturn" x="313" y="113">
    <mutation value="1"></mutation>
  </block>
  <block type="procedures_defnoreturn" x="313" y="163">
    <field name="NAME">do something</field>
    <comment pinned="false" h="80" w="160">Describe this function...</comment>
  </block>
</workspace>
screen shot 2017-05-10 at 12 54 40 pm
AnmAtAnm commented 7 years ago

Comment:

<g class="blocklyIconGroup" display="block">
  <circle class="blocklyIconShape" r="8" cx="8" cy="8"></circle>
  <path class="blocklyIconSymbol" d="m6.8,10h2c0.003,-0.617 0.271,-0.962 0.633,-1.266 2.875,-2.405 0.607,-5.534 -3.765,-3.874v1.7c3.12,-1.657 3.698,0.118 2.336,1.25 -1.201,0.998 -1.201,1.528 -1.204,2.19z"></path>
  <rect class="blocklyIconSymbol" x="6.8" y="10.78" height="2" width="2"></rect>
</g>

Mutator:

<g class="blocklyIconGroup" display="block">
  <rect class="blocklyIconShape" rx="4" ry="4" height="16" width="16"></rect>
  <path class="blocklyIconSymbol" d="m4.203,7.296 0,1.368 -0.92,0.677 -0.11,0.41 0.9,1.559 0.41,0.11 1.043,-0.457 1.187,0.683 0.127,1.134 0.3,0.3 1.8,0 0.3,-0.299 0.127,-1.138 1.185,-0.682 1.046,0.458 0.409,-0.11 0.9,-1.559 -0.11,-0.41 -0.92,-0.677 0,-1.366 0.92,-0.677 0.11,-0.41 -0.9,-1.559 -0.409,-0.109 -1.046,0.458 -1.185,-0.682 -0.127,-1.138 -0.3,-0.299 -1.8,0 -0.3,0.3 -0.126,1.135 -1.187,0.682 -1.043,-0.457 -0.41,0.11 -0.899,1.559 0.108,0.409z"></path>
  <circle class="blocklyIconShape" r="2.7" cx="8" cy="8"></circle>
</g>

Warning:

<g class="blocklyIconGroup" display="block">
  <path class="blocklyIconShape" d="M2,15Q-1,15 0.5,12L6.5,1.7Q8,-1 9.5,1.7L15.5,12Q17,15 14,15z"></path>
  <path class="blocklyIconSymbol" d="m7,4.8v3.16l0.27,2.27h1.46l0.27,-2.27v-3.16z"></path>
  <rect class="blocklyIconSymbol" x="7" y="11" height="2" width="2"></rect>
</g>