完整场景
品牌色铺满
结尾画面:标志先落定,品牌色从标志内部以实边圆形向外扩散直到铺满画面,网址随后出现在新的底色上。
安装
npx @imgcli/cli add color-flood使用
import { ColorFlood } from "@/components/imgcli/color-flood";
<ColorFlood />默认参数下以 30 fps 渲染 108 帧(3.6 秒),预览画布为 960 × 540。
Use <ColorFlood name="Acme" logo="/logo.svg" url="acme.dev" /> for 108 frames at 30 fps (COLOR_FLOOD_SECONDS). accentColor is the flood; onAccent is the ink on it.
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
name | string | "imgcli" | |
logo | string | — | Image URL of the brand mark. Omit for Imgcli's mark. |
url | string | "imgcli.com" | |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
onAccent | string | — | Ink on the flood; defaults to the theme's primary foreground. |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | 1 |
许可
MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。
Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>
常见问题
如何在 Remotion 项目中使用品牌色铺满?
运行 npx @imgcli/cli add color-flood。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。
品牌色铺满能做什么?
结尾画面:标志先落定,品牌色从标志内部以实边圆形向外扩散直到铺满画面,网址随后出现在新的底色上。
使用品牌色铺满前需要准备什么?
准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。