Draws the current animation frame It is undefined behavior to call render() on a newly created Animation before specifying an initial frame via one of the seek() variants. @param canvas destination canvas @return this
(@NotNull Canvas canvas)
| 59 | * @return this |
| 60 | */ |
| 61 | @NotNull @Contract("!null -> this; null -> fail") |
| 62 | public Animation render(@NotNull Canvas canvas) { |
| 63 | return render(canvas, Rect.makeXYWH(0, 0, getWidth(), getHeight())); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * <p>Draws the current animation frame</p> |