回答編集履歴
1
ついき
test
CHANGED
@@ -31,3 +31,27 @@
|
|
31
31
|
ctx.fillRect(10, 10, 100, 100); //緑で四角を描く
|
32
32
|
|
33
33
|
```
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
# 保存される状態は以下の通り
|
38
|
+
|
39
|
+
(日本語訳が存在しないらしく、言語切り替えで選べませんでした)
|
40
|
+
|
41
|
+
[https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/save#Drawing_state](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/save#Drawing_state)
|
42
|
+
|
43
|
+
> Drawing state
|
44
|
+
|
45
|
+
>
|
46
|
+
|
47
|
+
> The drawing state that gets saved onto a stack consists of:
|
48
|
+
|
49
|
+
>
|
50
|
+
|
51
|
+
> The current transformation matrix.
|
52
|
+
|
53
|
+
> The current clipping region.
|
54
|
+
|
55
|
+
> The current dash list.
|
56
|
+
|
57
|
+
> The current values of the following attributes: strokeStyle, fillStyle, globalAlpha, lineWidth, lineCap, lineJoin, miterLimit, lineDashOffset, shadowOffsetX, shadowOffsetY, shadowBlur, shadowColor, globalCompositeOperation, font, textAlign, textBaseline, direction, imageSmoothingEnabled.
|