[canvaskit] Small example fixes

Change-Id: If7a05b34975f2fee8f057e649bfe3a7b0fc541b9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404778
Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
Kevin Lubick 2021-05-05 13:19:49 -04:00
parent ffbeda78c5
commit 3232a6625b

View File

@ -8,6 +8,10 @@
canvas, img {
border: 1px dashed #AAA;
}
#api5_c, #api6_c {
width: 300px;
height: 300px;
}
</style>
@ -616,7 +620,7 @@
ctx.translate(60, 0);
ctx.rotate(Math.PI / 6);
ctx.transform(1.5, 0, 0, 0.5, 0, 0, 0); // effectively scale
ctx.transform(1.5, 0, 0, 0.5, 0, 0); // effectively scale
ctx.rect(90, 10, 20, 20);
ctx.resetTransform();