Giter VIP home page Giter VIP logo

fract-ol's Introduction

fract-ol

Mandelbrot

mandelbrot-demo

Julia

julia-demo

Burningship

burningship-demo

fract-ol's People

Contributors

shwatanap avatar

Watchers

 avatar

fract-ol's Issues

定数Cの更新処理の実装

julia集合では定数Cを複素数平面座標に応じて形を変形させるため、その更新処理を実装する

select fractal type by command line

コマンドライン引数として、フラクタルの種類をindexで与える。
コマンドライン引数がinvalidであった場合には、Usageとして

Plese select fractal type
0: mandelbrot, 1: julia

のように表示させる

update Makefile

Makefileの構成を
fractol
-includes
-srcs
-objs
に変更する

色づけ方法の変更

現在は発散したiterの数が偶数か奇数かのみで色をつけているが、iter / max_iter * 255でrgbを計算する

delete libft

libftの中で使用した関数がft_putstr_fdだけだったのでlibftを使わないようにする

複素数のリファクタリング

現在の複素数に関する情報の構造体は

typedef struct s_complex_num
{
	double			z_re;
	double			z_im;
	double			c_re;
	double			c_im;
	double			delta_re;
	double			delta_im;
}					t_complex_num;

のような状態だが、これを

typedef struct s_complex_num
{
         double			re;
	double			im;
}					t_complex_num;

typedef struct s_complex_info
{
	t_complex_num	z;
	t_complex_num	c;
	t_complex_num	delta;
}					t_complex_info;

のようにまとめる

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.