From f6a5169f7f9673d298f3e2016f8a1cd834d79530 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sun, 22 Mar 2015 10:00:29 +0100 Subject: allow drawing lines and shapes; use a different approach to close polygons --- blocks.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 5cdcc1c..2e686cd 100644 --- a/blocks.js +++ b/blocks.js @@ -1264,6 +1264,20 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { ); break; + // Snap! YOW + case '%drawmode': + part = new InputSlotMorph( + null, // text + false, // numeric? + { + 'line' : ['line'], + 'shape': ['shape'] + }, + true // read-only + ); + part.setContents(['line']); + break; + // symbols: case '%turtle': -- cgit v1.3.1