Skip to content

Commit 56660f8

Browse files
committed
Update BlendMode #4
- Update from Flutter.
1 parent f4dadc6 commit 56660f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/src/api/models/blend_mode.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ enum BlendModeC {
163163
///
164164
/// This corresponds to the "Source plus Destination" Porter-Duff operator.
165165
///
166+
/// This is the right blend mode for cross-fading between two images. Consider
167+
/// two images A and B, and an interpolation time variable _t_ (from 0.0 to
168+
/// 1.0). To cross fade between them, A should be drawn with opacity 1.0 - _t_
169+
/// into a new layer using [BlendMode.srcOver], and B should be drawn on top
170+
/// of it, at opacity _t_, into the same layer, using [BlendMode.plus].
171+
///
166172
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_plus.png)
167173
plus,
168174

@@ -380,7 +386,7 @@ enum BlendModeC {
380386
/// [srcOver]. Regions that are entirely transparent in the source image take
381387
/// their saturation from the destination.
382388
///
383-
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_hue.png)
389+
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_saturation.png)
384390
///
385391
/// See also:
386392
///

0 commit comments

Comments
 (0)