MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / PlasmaProps

Interface PlasmaProps

components/plasma.tsx:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import React, { useEffect, useRef } from "react";
5
6interface PlasmaProps {
7 color?: string;
8 speed?: number;
9 direction?: "forward" | "reverse" | "pingpong";
10 scale?: number;
11 opacity?: number;
12 mouseInteractive?: boolean;
13}
14
15const hexToRgb = (hex: string): [number, number, number] => {
16 const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected