SVG: svg, rect: Rotate Dark Green Rectangle 30 deg

nick3499
1 min readFeb 25, 2017

--

<svg width="720" height="640"> sets the SVG canvas dimensions. <rect x="150" y="0" width="100" height="200" fill="darkgreen" transform="rotate(30)" draws a rectangle using the SVG rect tag. x="150" y="0" locates the rectangle on the canvas. width="100" height="200" sets the dimensions of the rectangle. fill="darkgreen" fills the rectangle with the darkgreen HTML color. transform="rotate(30)" rotates the rectangle 30 degrees.

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet