From a3c41c785dee2a3595964c7130e79f1e23f7967b Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Mon, 28 Sep 2020 11:12:08 +0200 Subject: [PATCH] Default files for webcam --- client/modules/IDE/reducers/files.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/client/modules/IDE/reducers/files.js b/client/modules/IDE/reducers/files.js index e6f1d35b..6cade0d7 100644 --- a/client/modules/IDE/reducers/files.js +++ b/client/modules/IDE/reducers/files.js @@ -1,20 +1,21 @@ import objectID from 'bson-objectid'; import * as ActionTypes from '../../../constants'; -const defaultSketch = `function setup() { - createCanvas(400, 400); -} +const defaultSketch = `// liveUpdate -function draw() { - background(220); +function drawMask(detection) { + stroke('red'); + strokeWeight(2); + rect(detection.box.x, detection.box.y, detection.box.width, detection.box.height) }`; const defaultHTML = ` - + - - + + +