参考 noiseSeed()

noiseSeed()

noise() 函数设置种子值。

默认情况下,noise() 每次运行绘图时都会产生不同的结果。使用常量参数调用 noiseSeed(),例如 noiseSeed(99),使 noise() 每次运行绘图时产生相同的结果。

示例

语法

noiseSeed(seed)

参数

seed
数字:

噪声种子值。

This page is generated from the comments in src/math/noise.js . Please feel free to edit it and submit a pull request!

相关参考