Skip to content

useApplication

This composable hook is used to obtain the current Pixi Application instance.

html
<script setup lang="ts">
import { useApplication } from "vue3-pixi";

const app = useApplication()

// set background color
app.value.renderer.backgroundColor = 0x061639
</script>
<script setup lang="ts">
import { useApplication } from "vue3-pixi";

const app = useApplication()

// set background color
app.value.renderer.backgroundColor = 0x061639
</script>