Skip to content
Back to skills

Python实现Ridged Multifractal噪声算法

ASecurity

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

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentspython

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill 'python实现ridged-multifractal噪声算法' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python实现Ridged Multifractal噪声算法?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python实现Ridged Multifractal噪声算法
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-python-ridged-multifractal/badge)](https://www.skillsdirectory.com/skills/david-li0406-python-ridged-multifractal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "4ec50bf5-60db-4a91-868c-d34674e3dd80"
name: "Python实现Ridged Multifractal噪声算法"
description: "编写不依赖第三方noise库的Python代码,实现Ridged Multifractal噪声生成,支持自定义长宽参数,适用于地形或纹理生成。"
version: "0.1.0"
tags:
  - "python"
  - "噪声算法"
  - "ridged_multifractal"
  - "环世界"
  - "代码生成"
triggers:
  - "用python写ridged multifractal噪声"
  - "不使用noise库生成噪声"
  - "环世界噪声算法实现"
  - "ridged multifractal python代码"
  - "生成ridged噪声图"
---

# Python实现Ridged Multifractal噪声算法

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

## Prompt

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

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

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

## Triggers

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…