Closed GoogleCodeExporter closed 8 years ago
Images (PNG, GIF, JPG, SVG, BMP, etc) may now be added to blocks.
Open the block factory:
http://blockly-demo.appspot.com/blockly/demos/blockfactory/index.html
Drag an image block from the title menu and add it to the title field of the
base block. This should make a star image appear on the preview block to the
right.
You can change the URL to an SVG:
https://upload.wikimedia.org/wikipedia/commons/2/22/SVG_Simple_Logo.svg
Then set the height and width to be larger.
The documentation for FieldImage is on this page:
http://code.google.com/p/blockly/wiki/DefiningBlocks
Original comment by neil.fra...@gmail.com
on 3 Oct 2012 at 9:00
Original issue reported on code.google.com by
hsuva...@gmail.com
on 13 Aug 2012 at 1:55