mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-28 14:09:01 -05:00
update development demo render options
This commit is contained in:
parent
4e6a8d90ff
commit
0b131a499c
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue