EKsumic's Blog

let today = new Beginning();

Click the left button to use the catalog.


[SVG] How to draw a rectangle?

Previous: [SVG] How to draw a circle?


<svg >
  <rect width="300" height="100" style="stroke:rgb(0,0,0);stroke-width:2;fill:transparent;" />
  <rect width="300" height="100" stroke="black" stroke-width="2" fill="transparent" />

Show results:


Why did I write two examples? 

This is simply another way of writing that I want to tell you, which is written in "style", even though they are separate attributes.

stroke:rgb(0,0,0) ⇔ stroke=black

This is another way to show colors.

Next: [SVG] How to draw polygons?

This article was last edited at 2020-12-09 11:57:15

* *