twoCircleParameter

fun twoCircleParameter(x: Double, y: Double, x0: Double, y0: Double, r0: Double, x1: Double, y1: Double, r1: Double): Double?(source)

The parameter s of a gradient between the circles (x0, y0, r0) and (x1, y1, r1) at the point (x, y), all in shading space, for a canvas whose platform has no such gradient: Android before API 31 (#413, #591). It is the largest s whose circle, centred at c0 + s (c1 - c0) with a radius r0 + s (r1 - r0) of at least 0, passes through the point, as a platform gradient picks it (ISO 32000-1, 8.7.4.5.4). Null when no such circle passes through the point.