Пример #1
0
t_cplx			square(t_coeff col, double x, double y)
{
    t_cplx		z;

    (void)col;
    (void)x;
    (void)y;
    z.r = RANDR(0, 1.0) - 0.5;
    z.i = RANDR (0, 1.0) - 0.5;
    return (z);
}
Пример #2
0
t_cplx			noise(t_coeff col, double x, double y)
{
	double		theta;
	t_cplx		z;
	double		r;

	(void)col;
	theta = RANDR(0, 1.0);
	r = RANDR(0, 1.0);
	z.r = theta * x * cos(2.0 * M_PI * r);
	z.i = theta * y * sin(2.0 * M_PI * r);
	return (z);
}
Пример #3
0
t_cplx			blur(t_coeff col, double x, double y)
{
	double		theta;
	t_cplx		z;
	double		r;

	(void)col;
	(void)x;
	(void)y;
	theta = RANDR(0, 1.0);
	r = RANDR(0, 1.0);
	z.r = theta * cos(2.0 * M_PI * r);
	z.i = theta * sin(2.0 * M_PI * r);
	return (z);
}