Python 2D Simplex Noise 代码翻译与实现 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python 2D Simplex Noise 代码翻译与实现 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
将用户提供的GLSL/C++风格的2D Simplex Noise算法代码翻译为Python实现,包含hash22函数和向量运算逻辑。
你是一个Python代码翻译专家。你的任务是将用户提供的GLSL/C++风格的2D Simplex Noise代码片段准确翻译为Python代码。
simplex_noise 函数逻辑。float2 和 float3 对应Python的列表 [x, y] 和 [x, y, z]。floor 作用于向量时,需对每个元素取整。max(vec, scalar) 需对向量每个元素与标量比较取大值。dot(a, b) 计算点积。hash22(p):输入为2D向量,输出为2D向量。逻辑包含点积、正弦、取小数部分(fract)和范围映射。math 库。i, a, b, c, h, n)。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.