JSFiddle - React, Tailwind, and code Playground

by sperske

JavaScript

var steps = 10,
    step,
    stepSize = 1/steps,
    radii = [];
for(step = 0; step <= steps; step++) {
  radii[step] = (1-(stepSize * step)) * 100;
}

console.log(radii)