跳转到内容

Velocity Magnitude Context

这是一个实验性功能。要启用,请在 Preferences 中勾选 Enable Experimental Features。实验性功能仅作为 Professional 许可证的一部分提供。

此 Layer 可用于提取速度数据。例如,Duplicator 默认添加速度数据。你可以使用此上下文,比如根据某物的速度改变其颜色。

Strength - 输出的倍增系数。

Offset - 对输出进行加减。

  1. 创建一个 Polygon
  2. Polygon 添加到 Duplicator 中。
  3. Noise 添加到 Duplicator 的 Shape Position
  4. 创建一个 Velocity Magnitude Context
  5. 连接 speedContext.id→polygon.fillColor.r(Polygon 的红色通道)

当 Duplicator 中的 Shapes 在屏幕上移动时,它们的颜色会根据其移动速度而变化。增加 Velocity Magnitude Context 上的 Strength 以放大效果。