[go: nahoru, domu]

Skip to content

Commit

Permalink
Mention the point of BlendMode.plus and advise on using it. (flutter#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hixie committed Jul 31, 2023
1 parent a363e9b commit 5478052
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ui/painting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,12 @@ enum BlendMode {
///
/// This corresponds to the "Source plus Destination" Porter-Duff operator.
///
/// This is the right blend mode for cross-fading between two images. Consider
/// two images A and B, and an interpolation time variable _t_ (from 0.0 to
/// 1.0). To cross fade between them, A should be drawn with opacity 1.0 - _t_
/// into a new layer using [BlendMode.srcOver], and B should be drawn on top
/// of it, at opacity _t_, into the same layer, using [BlendMode.plus].
///
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_plus.png)
plus,

Expand Down

0 comments on commit 5478052

Please sign in to comment.