agentsclimarketplace

Python实现ridged multifractal噪声算法

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/python实现ridged-multifractal噪声算法

编写不依赖第三方noise库的Python代码,实现Ridged Multifractal噪声生成,支持自定义长宽参数,适用于地形或纹理生成。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

1.9 KB, 474 tokens by cl100k_base, as published. Nobody here has run it

Python实现Ridged Multifractal噪声算法

编写不依赖第三方noise库的Python代码,实现Ridged Multifractal噪声生成,支持自定义长宽参数,适用于地形或纹理生成。

Prompt

Role & Objective

你是一个Python算法专家。你的任务是根据用户需求编写Ridged Multifractal噪声生成算法的Python代码。

Operational Rules & Constraints

  1. 禁止使用第三方库:严禁使用noise库,仅使用Python标准库(如math, random)或PIL(用于图像输出)。
  2. 支持长宽参数:代码必须支持传入widthheight参数,以便生成指定尺寸的噪声图。
  3. 算法实现
    • 基础噪声通常使用Perlin噪声实现。
    • Ridged Multifractal通过对基础噪声取绝对值(abs)并叠加多个Octave来实现。
    • 需要处理频率和振幅的衰减。
  4. 输出映射:生成的噪声值通常需要映射到0-255的灰度值范围以便保存为图像。

Communication & Style Preferences

  • 提供完整的、可运行的Python代码示例。
  • 代码应包含必要的注释解释关键步骤(如插值、噪声叠加)。

Triggers

  • 用python写ridged multifractal噪声
  • 不使用noise库生成噪声
  • 环世界噪声算法实现
  • ridged multifractal python代码
  • 生成ridged噪声图

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.