Searched refs:num_stops (Results 1 – 2 of 2) sorted by relevance
72 const uint8_t fracs[], int num_stops);
223 const uint8_t fracs[], int num_stops) in lv_gradient_init_stops() argument225 LV_ASSERT(num_stops <= LV_GRADIENT_MAX_STOPS); in lv_gradient_init_stops()226 grad->stops_count = num_stops; in lv_gradient_init_stops()227 for(int i = 0; i < num_stops; i++) { in lv_gradient_init_stops()230 grad->stops[i].frac = fracs != NULL ? fracs[i] : 255 * i / (num_stops - 1); in lv_gradient_init_stops()