📜  迷宫生成的着色器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:37.661000             🧑  作者: Mango

代码示例2
import React, {useEffect} from 'react'
import preset from 'canvas-preset'
export default () => {
  useEffect(
    () => {
      const { size, clear, draw } = preset()
      
      size()
      draw(() => clear('#f44'))
    },
    []
  )
  return 
}