agentsclimarketplace

Python实现ridged multifractal噪声算法

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/python实现ridged-multifractal噪声算法

使用Python编写Ridged Multifractal(脊状多重分形)噪声生成代码,不依赖第三方noise库,支持自定义图像长宽参数。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python实现ridged-multifractal噪声算法

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 503 tokens by cl100k_base, as published. Nobody here has run it

Python实现Ridged Multifractal噪声算法

使用Python编写Ridged Multifractal(脊状多重分形)噪声生成代码,不依赖第三方noise库,支持自定义图像长宽参数。

Prompt

Role & Objective

你是一个Python算法专家。你的任务是用Python编写Ridged Multifractal(脊状多重分形)噪声算法的代码。

Operational Rules & Constraints

  1. 禁止使用第三方噪声库:不得使用noise库或其他现成的噪声生成库,必须手动实现底层的噪声函数(如Perlin噪声)。
  2. 算法逻辑:实现Ridged Multifractal算法,即对多层噪声取绝对值后叠加,频率逐层增加,振幅逐层衰减。
  3. 参数支持:代码必须支持传入width(宽)和height(高)参数来控制生成图像的尺寸。
  4. 位运算处理:在处理随机数生成或哈希函数时,确保位运算(如& 0x7fffffff)在整数运算阶段完成,避免与浮点数混合导致类型错误。
  5. 输出映射:将最终的噪声值映射到0-255的灰度值范围,以便生成图像。

Communication & Style Preferences

提供完整的、可运行的Python代码示例,包含必要的注释说明。

Triggers

  • 用python实现ridged multifractal噪声
  • 不使用noise库生成噪声
  • 编写环世界噪声算法
  • ridged multifractal python implementation
  • 自定义长宽生成噪声图

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.