Caret color and movement animation in Swing
Hey Not 100% sure what's up with the babySteps function


  "the stepsColor(int from, int to, int max) provide the maximum addition to add it to > from to be to but the return will be less than max"


Is a little confusing anyway I refactored

public static int babySteps(int from, int to, int max) {
    int j = 0;
    int currentPoint = to;
    for (;j &lt;= max; j++) {
        if (!from &gt;= currentPoint || !from &lt;= currentPoint) {
            return j;
        }
    }
}


Can you send me the GitHub link so I can look into the code base thanks