mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
Create <GridScan /> background
This commit is contained in:
28
src/constants/code/Backgrounds/gridScanCode.ts
Normal file
28
src/constants/code/Backgrounds/gridScanCode.ts
Normal 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>`
|
||||
});
|
||||
Reference in New Issue
Block a user