Skip to content

Commit

Permalink
Graphics Doc: Violin example. added comparative file sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jconniff committed Jul 26, 2011
1 parent d215b0b commit 7888277
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/graphics/docs/graphics-violin.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@
left: 34px;
position: relative;
}
.fuzzy{
.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}}
Expand Down Expand Up @@ -50,7 +56,7 @@ This example shows how to use the `Graphics` to draw the head of a violin.
left: 34px;
position: relative;
}
.fuzzy{
.woodgrain{
opacity:0.2;
filter:alpha(opacity=20);
}
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/docs/partials/graphics-violin-source.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
headWoodgrain.end();
//handle for adding opacity to the whole object.
headWoodgrain.addClass('fuzzy');
headWoodgrain.addClass('woodgrain');
}
//The bushing for the left tuning key
Expand Down

0 comments on commit 7888277

Please sign in to comment.