From e771d93fdf7f352f4427278c3ae3f7d89572b893 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Fri, 11 Oct 2019 15:00:52 -0700 Subject: [PATCH 1/2] update docs --- lib/ui/painting.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index ca21fcc4e29c2..e8f31e6ccecc4 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -2493,16 +2493,18 @@ class ColorFilter { _matrix = null, _type = _TypeMode; - /// Construct a color filter that transforms a color by a 4x5 matrix. + /// 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 /// 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 | + /// | G' | | a10 a11 a22 a33 a44 | | G | + /// | B' | = | a20 a21 a22 a33 a44 | * | B | /// | A' | | a30 a31 a22 a33 a44 | | A | + /// | 1 | | 0 0 0 0 1 | | 1 | /// ``` /// /// The matrix is in row-major order and the translation column is specified From f536bb124a0cb78f431f1c2322a6a4dd95f1bc6c Mon Sep 17 00:00:00 2001 From: Dan Field Date: Fri, 11 Oct 2019 15:46:30 -0700 Subject: [PATCH 2/2] force markdown to text --- lib/ui/painting.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index e8f31e6ccecc4..eff01d44bd2c4 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -2499,7 +2499,7 @@ class ColorFilter { /// Every pixel's color value, repsented 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 |