From 1cb91201c08077382e198a00ca89d5ffbb11323c Mon Sep 17 00:00:00 2001 From: Harry Terkelsen Date: Tue, 28 Feb 2023 15:57:46 -0800 Subject: [PATCH] Fix typo in ColorFilter docs (#36448) Fix typo in ColorFilter docs --- lib/ui/painting.dart | 8 ++++---- lib/web_ui/lib/src/engine/color_filter.dart | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index 2a00e98faf2ed..30cc3d3ecc0ba 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -3278,13 +3278,13 @@ class ColorFilter implements ImageFilter { /// Construct a color filter that transforms a color by a 5x5 matrix, where /// the fifth row is implicitly added in an identity configuration. /// - /// Every pixel's color value, repsented as an `[R, G, B, A]`, is matrix + /// Every pixel's color value, represented as an `[R, G, B, A]`, is matrix /// multiplied to create a new color: /// /// | R' | | a00 a01 a02 a03 a04 | | R | - /// | G' | | a10 a11 a22 a33 a44 | | G | - /// | B' | = | a20 a21 a22 a33 a44 | * | B | - /// | A' | | a30 a31 a22 a33 a44 | | A | + /// | G' | | a10 a11 a12 a13 a14 | | G | + /// | B' | = | a20 a21 a22 a23 a24 | * | B | + /// | A' | | a30 a31 a32 a33 a34 | | A | /// | 1 | | 0 0 0 0 1 | | 1 | /// /// The matrix is in row-major order and the translation column is specified diff --git a/lib/web_ui/lib/src/engine/color_filter.dart b/lib/web_ui/lib/src/engine/color_filter.dart index 0fc408ea3e519..2bae11eef6162 100644 --- a/lib/web_ui/lib/src/engine/color_filter.dart +++ b/lib/web_ui/lib/src/engine/color_filter.dart @@ -34,14 +34,14 @@ class EngineColorFilter implements ui.ColorFilter { /// Construct a color filter that transforms a color by a 5x5 matrix, where /// the fifth row is implicitly added in an identity configuration. /// - /// Every pixel's color value, repsented as an `[R, G, B, A]`, is matrix + /// Every pixel's color value, represented as an `[R, G, B, A]`, is matrix /// multiplied to create a new color: /// /// ```text /// | R' | | a00 a01 a02 a03 a04 | | R | - /// | G' | | a10 a11 a22 a33 a44 | | G | - /// | B' | = | a20 a21 a22 a33 a44 | * | B | - /// | A' | | a30 a31 a22 a33 a44 | | A | + /// | G' | | a10 a11 a12 a13 a14 | | G | + /// | B' | = | a20 a21 a22 a23 a24 | * | B | + /// | A' | | a30 a31 a32 a33 a34 | | A | /// | 1 | | 0 0 0 0 1 | | 1 | /// ``` ///