Create <GridScan /> background

This commit is contained in:
Alfarish Fizikri
2025-12-26 21:02:59 +07:00
parent b91dd767ac
commit ac136bae7e
7 changed files with 1204 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
import code from '@content/Backgrounds/GridScan/GridScan.vue?raw';
import { createCodeObject } from '@/types/code';
export const gridScan = createCodeObject(code, 'Backgrounds/GridScan', {
installation: `npm install three postprocessing face-api.js`,
usage: `<template>
<div class="w-full h-[600px] relative">
<GridScan
:line-thickness="1"
:grid-scale="0.1"
:line-jitter="0.1"
lines-color="#392e4e"
scan-color="#FF9FFC"
:enable-post="true"
:chromatic-aberration="0.002"
:noise-intensity="0.01"
:scan-glow="0.5"
:scan-softness="2"
:enable-webcam="false"
:show-preview="false"
/>
</div>
</template>
<script setup lang="ts">
import GridScan from "./GridScan.vue";
</script>`
});