HTML and CSS Reference
In-Depth Information
var
var
y
=
100
;
var
var
width
=
100
;
var
var
height
=
50
;
context
.
translate
(
x
+
.
5
*
width
,
y
+
.
5
*
height
);
context
.
rotate
(
angleInRadians
);
context
.
scale
(
2
,
2
);
context
.
fillStyle
=
"red"
;
context
.
fillRect
(
-
.
5
*
width
,
-
.
5
*
height
,
width
,
height
);
}