未验证 提交 1c2a56ce 编写于 作者: 张风捷特烈's avatar 张风捷特烈 提交者: GitHub

Update painting.dart (#22221)

上级 387019a3
...@@ -4540,7 +4540,7 @@ class Canvas extends NativeFieldWrapperClass2 { ...@@ -4540,7 +4540,7 @@ class Canvas extends NativeFieldWrapperClass2 {
/// transformList[i * 4 + 0] = 1.0; /// transformList[i * 4 + 0] = 1.0;
/// transformList[i * 4 + 1] = 0.0; /// transformList[i * 4 + 1] = 0.0;
/// transformList[i * 4 + 2] = sprite.centerX - 5.0; /// transformList[i * 4 + 2] = sprite.centerX - 5.0;
/// transformList[i * 4 + 2] = sprite.centerY - 5.0; /// transformList[i * 4 + 3] = sprite.centerY - 5.0;
/// } /// }
/// Paint paint = Paint(); /// Paint paint = Paint();
/// canvas.drawAtlas(spriteAtlas, transformList, rectList, null, null, null, paint); /// canvas.drawAtlas(spriteAtlas, transformList, rectList, null, null, null, paint);
...@@ -4600,7 +4600,7 @@ class Canvas extends NativeFieldWrapperClass2 { ...@@ -4600,7 +4600,7 @@ class Canvas extends NativeFieldWrapperClass2 {
/// transformList[i * 4 + 0] = transform.scos; /// transformList[i * 4 + 0] = transform.scos;
/// transformList[i * 4 + 1] = transform.ssin; /// transformList[i * 4 + 1] = transform.ssin;
/// transformList[i * 4 + 2] = transform.tx; /// transformList[i * 4 + 2] = transform.tx;
/// transformList[i * 4 + 2] = transform.ty; /// transformList[i * 4 + 3] = transform.ty;
/// ///
/// // This example computes the color value directly, but one could also compute /// // This example computes the color value directly, but one could also compute
/// // an actual Color object and use its Color.value getter for the same result. /// // an actual Color object and use its Color.value getter for the same result.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册