From 0b131a499c7479cab246d5d31c2a547dbc8b79eb Mon Sep 17 00:00:00 2001 From: liabru Date: Mon, 6 May 2024 22:59:51 +0100 Subject: [PATCH] update development demo render options --- demo/src/Demo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demo/src/Demo.js b/demo/src/Demo.js index 39609c4..986a801 100644 --- a/demo/src/Demo.js +++ b/demo/src/Demo.js @@ -57,9 +57,11 @@ var demo = function(examples, isDev) { buttonSource.parentNode.insertBefore(buttonCompare, buttonSource.nextSibling); - // always show debug info Matter.before('Render.create', function(renderOptions) { + // custom render options in development demo renderOptions.options.showDebug = true; + renderOptions.options.pixelRatio = 'auto'; + renderOptions.options.wireframeStrokeStyle = '#aaa'; }); // arrow key navigation of examples