Draws the current animation frame. If [time] is `null`, draws the last frame (i.e. no animation).
(&self, ctx: &C, time: Option<i64>)
| 742 | /// |
| 743 | /// If [time] is `null`, draws the last frame (i.e. no animation). |
| 744 | fn draw_frame(&self, ctx: &C, time: Option<i64>) { |
| 745 | let props = self.props.borrow(); |
| 746 | let width = props.width; |
| 747 | let height = props.height; |
| 748 | |
| 749 | ctx.set_fill_color(*self.options.background()); |
| 750 | // just fill instead clear |
| 751 | ctx.fill_rect(0., 0., width, height); |
| 752 | } |
| 753 | |
| 754 | /// Draws the channel given the current animation percent [percent]. |
| 755 | /// |
nothing calls this directly
no test coverage detected