0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-29 14:19:01 -05:00

update development demo render options

This commit is contained in:
liabru 2024-05-06 22:59:51 +01:00
parent 4e6a8d90ff
commit 0b131a499c

View file

@ -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