问题标签 [mandelbrot]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
2480 浏览

c - 确定点是否在 Mandelbrot 集中的代码帮助(检查我的解决方案)

这是我的函数,它测试两个点 x 和 y 是否在 MAX_ITERATION 255 之后是否在 mandelbrot 集中。如果不是,它应该返回 0,如果是,则返回 1。

鉴于它是正确的(有人可以验证......或者写一个更有效的吗?)。这是我的打印代码,但是它不起作用!(它不断给出所有点都在集合中)。我在这里做错了什么?

0 投票
1 回答
2095 浏览

zooming - 如何放大曼德布罗集?

我可以生成从 minReal 到 maxReal 以及从 minImaginary 到 maxImaginary 的 Mandelbrot 集的 400x400 图像。所以,

我需要修改它,以便我可以拥有,

(考虑缩放级别表示像素之间的距离,由公式缩放级别 n = 2 ^ (-n) 给出,因此缩放级别 1 表示像素相隔 0.5 个单位,缩放级别 2、0.25 等等...)

我的问题是如何从第二个函数的参数计算第一个 makeMandel 函数的参数?我知道第一个函数能够缩放和移动,但我不知道如何计算任何给定中心和缩放级别的正确数字。

我一直试图让这个工作超过三天,我真的很困惑。我试着在纸上画桌子等等……然后把它弄出来。我在搜索 mandelbrot 集和一些过去的 stackoverflow 问题时阅读了您在 Google 上找到的大多数文档,但我仍然不明白。请帮帮我。

0 投票
5 回答
4875 浏览

colors - 对于所有有创造力的人:着色曼德布罗集......需要想法

给定最大迭代次数 = 1000 给我一些关于如何着色(红色、绿色、蓝色)的想法。我现在能想到的只是蹩脚的 2 种颜色渐变 :(

真的有可能想出像这样美丽的东西吗?

在此处输入图像描述

0 投票
1 回答
907 浏览

opengl - 如何放大我的代码(mandelbrot)

我有以下代码,我想知道如何在我的代码中插入缩放。(我读了一些类似的主题,但我不知道)。

0 投票
3 回答
2318 浏览

python - 如何从调色板中进行颜色渐变

我正在研究的这个算法的目标是从一些提供的颜色中输出颜色进展。通过颜色进展,我的意思是在两种颜色(颜色 A、颜色 B)之间创建“淡入淡出”效果,并在其间存储每个颜色值((R,G,B)元组)。

例如,如果提供的是全黑A = (0,0,0)和全白B = (255,255,255),则进展结果将是:

P = ((0,0,0),(1,1,1),(2,2,2), .... ,(253,253,253),(254,254,254),(255,255,255)

所以我们一开始是白色的,然后逐渐变成黑色。当然,白色和黑色非常容易(只需将 RGB 每步增加 1 次,共 255 次)。但是如果我想用两种任意颜色来做这个过程,比如 A = (180,69,1) 和 B = (233,153,0)?

重要说明:如果使用十六进制(或任何其他类型的颜色表示法)更容易实现,我也可以使用它,只需指定哪种类型(考虑到我正在使用 PIL(Python 成像库) ,所以如果它与之兼容,我很好)

显然,它必须是尽可能均匀的分布,进展必须是均匀的。

我需要弄清楚这个算法,以便我可以在我的分形生成器中使用它(Mandelbrot Set,如果你愿意,可以在谷歌上搜索它),所以让进程尽可能柔和,没有打嗝很重要。

提前致谢。

0 投票
1 回答
488 浏览

android - Mandelbrot Android 应用程序的颜色渐变不起作用

我正在尝试为 Android 编程 Mandelbrot 集。我试着把它画在画布上。它有效,但我想要一个颜色渐变。这是我的代码:

编辑:这是 Eclipse 模拟器的绘制方式:http: //i53.tinypic.com/2mwfs7c.png

但我希望它像这样绘制(用 Delphi 编程):http: //i53.tinypic.com/ehg2et.png

0 投票
2 回答
604 浏览

ubuntu - Problem with testing Linux cluster using the Mandelbrot set

I have a six-node cluster running Ubuntu 11.04 and MPICH2 1.4. I'm trying to test the graphics using the Mandelbrot set. The pmandel executable that is supposedly found in one of the MPICH2 subdirectories is supposed to render the Mandelbrot fractal on the screen using all the nodes in the cluster, and all the directions I've found so far tell me to "use the pmandel exec" for this test. There is no exec - there is only pmandel.c, pmandel.h, and pmandel.pd. I thought I should compile pmandel.c to create the exec, but I get the following errors when I try:

It just looks like standard compilation errors to me. But why would MPICH2 be released with an error-ridden file? I'm sure I'm doing something wrong, but I just can't figure out how to run this test. Any help would be greatly appreciated.

0 投票
2 回答
509 浏览

java - 在 Android 上着色 Mandelbrot 集的问题

我在为 Mandelbrot 集着色时遇到问题。这是我的 onDraw() 过程:

这是 Java Android 模拟器的外观:http: //i55.tinypic.com/14ctqi8.png

这是我希望它看起来的样子:http: //i54.tinypic.com/nh1aqe.png它是用 Delphi 编写的,但着色部分实际上是相同的:

有人可以帮我吗?问候,

亨利

0 投票
1 回答
1193 浏览

delphi - Delphi 上 Mandelbrot 集的平滑着色算法

我在使用 smoot 着色算法时遇到问题。我只是没有在我的代码中实现它们。这是在一些计算的像素行之后导致错误的主要代码:

亨利

0 投票
3 回答
1640 浏览

c - 我的 Mandelbrot 设置代码有什么问题?

我正在尝试在 C 中实现 Mandelbrot 集,但我遇到了一个奇怪的问题。我的代码如下:

但是,存储为 ppm 文件的该程序的输出如下所示:

使用 GIMP 转换为 GIF。 我可以确认 GIF 和原始 PPM 看起来与 PPM 和 GIF 完全相同

谢谢你的帮助!