C#颜色循环MandleBrot分形 [英] C# Colour Cycling MandleBrot Fractal

查看:515
本文介绍了C#颜色循环MandleBrot分形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个Mandlebrot分形C#,这是工作正常...问题是我想循环通过所有的rgb颜色的效果,我认为是所谓的颜色循环...我知道,我需要转换位图到托盘,因此遍历每个像素?我将如何实现这个?

I am designing a Mandlebrot Fractal in C# which is working fine... Question is I want to cycle through all the rgb colours in effect what I think is called colour cycling... I know that I would need to convert the bitmap to a pallet and hence run through each pixel???? How would I achieve this?? Working on this for hours now and really unsure.

感谢

推荐答案

使用 HSV 代替RGB可能会使循环的颜色更容易,因为你只是增量和模数)单个值,而不是试图管理其中3个。

Using HSV instead of RGB would probably make cycling the colors a lot easier, since you just increment (and modulo) a single value instead of trying to manage 3 of them.

这篇关于C#颜色循环MandleBrot分形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆