This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| useState, | |
| useEffect, | |
| useCallback, | |
| useRef, | |
| useMemo, | |
| createElement, | |
| cloneElement, | |
| memo, | |
| } from 'react' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState, useEffect } from 'react' | |
| import styled from 'styled-components' | |
| import { useCanvas } from 'utils/hooks' | |
| import debounce from 'lodash/debounce' | |
| export default function Glow() { | |
| const [ref, setRef] = useState<HTMLCanvasElement | null>(null) | |
| const [boxes, setBoxes] = useState<Box[]>([]) | |
| const [ctx, width, height] = useCanvas(ref) | |
| const moving = useMouseMoving() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (p = v => new Proxy(v || {}, { get: ({ s = '' }, k) => k === 'print' ? s : | |
| p({ s: s + String.fromCharCode(k.length - 33 * k.match(/^\$*/)[0].length + 96)}) }))(). | |
| $________._____.____________.____________._______________.$$.$_______________________._______________.__________________.____________.____.$$_.print |