On Thu, 12 Sep 2024 13:41:53 GMT, Nir Lisker <nlis...@openjdk.org> wrote:

>> Michael Strauß has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   small doc changes, copyright header
>
> modules/javafx.graphics/src/main/java/javafx/animation/Interpolatable.java 
> line 54:
> 
>> 52:  *             <td>Two lists are combined by pairwise interpolation. If 
>> the start list has fewer elements than
>> 53:  *                 the target list, the missing elements are copied from 
>> the target list. If the start list has
>> 54:  *                 more elements than the target list, the excess 
>> elements are discarded.
> 
> Are the elements within the lists interpolated as well? For example, if one 
> list is `[red, blue]` and the other is `[green]`, then `blue` is discarded as 
> excess, but will `red` be linearly interpolated to `green`?
> 
> I understand that this specs is for the list itself, but in practice the list 
> can contain interpolatable elements, so it might be clearer to say what 
> happens with them.

Yes, in your example, `red` will be linearly interpolated with `green`.
That's what I intended to say with "pairwise interpolation": you pair up 
elements of both lists, and then for each pair, you apply the interpolation 
rules as described. I don't understand what you mean that the spec "is for the 
list itself".

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1522#discussion_r1759682578

Reply via email to