diff --git a/src/component/base/methods.js b/src/component/base/methods.js index 35061bd8..d760ce01 100644 --- a/src/component/base/methods.js +++ b/src/component/base/methods.js @@ -21,6 +21,7 @@ import eventListeners from '../../lib/eventListeners.js' import { trigger } from '../../lib/reactivity/effect.js' import { Log } from '../../lib/log.js' import { removeGlobalEffects } from '../../lib/reactivity/effect.js' +import { renderer } from '../../launch.js' export default { focus: { @@ -143,6 +144,14 @@ export default { enumerable: true, configurable: false, }, + $setClearColor: { + value: function (color) { + renderer.setClearColor(color) + }, + writable: false, + enumerable: false, + configurable: false, + }, } const deleteChildren = function (children) {