Lines Matching defs:n_stops
647 create_random_stops (int *n_stops)
654 *n_stops = prng_rand_n (50) + 1;
656 step = pixman_fixed_1 / *n_stops;
658 stops = malloc (*n_stops * sizeof (pixman_gradient_stop_t));
661 for (i = 0; i < (*n_stops) - 1; ++i)
669 stops[*n_stops - 1].x = pixman_fixed_1;
670 stops[*n_stops - 1].color = random_color();
689 int n_stops;
694 stops = create_random_stops (&n_stops);
701 result = pixman_image_create_linear_gradient (&p1, &p2, stops, n_stops);
711 int n_stops;
722 stops = create_random_stops (&n_stops);
728 &inner_c, &outer_c, inner_r, outer_r, stops, n_stops);
739 int n_stops;
747 stops = create_random_stops (&n_stops);
752 result = pixman_image_create_conical_gradient (&c, angle, stops, n_stops);