1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<style scoped>
#custom-doc { width: 95%; min-width: 950px; }
#pagetitle {background-image: url(../../assets/bg_hd.gif);}
#outerframe {
display: inline-block;
height: 446px;
width: 714px;
}
#mygraphiccontainer {
display: inline-block;
top: 100px;
width: 614px;
top: 15px;
left: 34px;
position: relative;
}
.woodgrain{
opacity:0.2;
filter:alpha(opacity=20);
}
</style>
<div class="intro">
<p>
This example shows how to use the `Graphics` to draw the head of a violin.
</p>
<p>
The comparable uncompressed .jpg photo image of the violin head was 161KB, .png(24-bit) was 359KB.
The Graphics code to render this example is 18KB.
</p>
</div>
<div class="example">
{{>graphics-violin-source}}
</div>
<h2>Path Drawing Tool</h2>
{{>graphics-path-tool-promotion}}
<h2>HTML</h2>
```
<div id="#outerframe">
<div id="mygraphiccontainer"></div>
</div>
```
<h2>CSS</h2>
```
#outerframe {
display: inline-block;
height: 446px;
width: 714px;
}
#mygraphiccontainer {
display: inline-block;
top: 100px;
width: 614px;
top: 15px;
left: 34px;
position: relative;
}
.woodgrain{
opacity:0.2;
filter:alpha(opacity=20);
}
```
<h2>Complete Example Source</h2>
```
{{>graphics-violin-source}}
```