Skip to content

Commit

Permalink
update development demo render options
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed May 6, 2024
1 parent 4e6a8d9 commit 0b131a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/src/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b131a4

Please sign in to comment.