svg 로 선그리기



html)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Insert title here</title>
</head>
 
<body>
    <?xml version="1.0" ?>
    <svg xmlns="http://www.w3.org/2000/svg" width="300px" height="400px" version="1.1">
        <!-- 
        x1 : 시작점 x좌표
        y1 : 시작점 y좌표
        x2 : 끝점 x좌표
        y2 : 끝점 y좌표
         -->
        <line x1="50" y1="100" x2="250" y2="100"
              style="stroke:green; stroke-width:5; stroke-opacity:0.5;" />
    </svg>
</body>
</html>
cs



결과

+ Recent posts