diff --git a/desktop/sources/scripts/commander.js b/desktop/sources/scripts/commander.js index c35cb07..e801d79 100644 --- a/desktop/sources/scripts/commander.js +++ b/desktop/sources/scripts/commander.js @@ -96,6 +96,9 @@ function Commander (client) { i += indent.length } } + // Space out comments + val = val.split('\n').map((line) => { return line.substr(0, 2) === '; ' ? `\n${line}\n` : line }).join('\n') + this._input.value = val.trim() } diff --git a/examples/pixels/average.lisp b/examples/pixels/average.lisp new file mode 100644 index 0000000..e186a48 --- /dev/null +++ b/examples/pixels/average.lisp @@ -0,0 +1,15 @@ +; Average color +(clear) +(def photo-rect + (rect 0 0 + (div 4240 3) + (div 2400 3))) +(resize photo-rect:w photo-rect:h) +(import $path photo-rect) +(def average-color + (pick + (guide + (rect 774 100 500 500)))) +(fill + (guide + (rect 228 100 500 500)) average-color) \ No newline at end of file