Skip to content

Commit

Permalink
Add roundedRect to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRio committed Jan 6, 2013
1 parent eb9d056 commit 092ce81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ <h2><a href="#">Draw example: rectangles / squares</a></h2>
doc.setDrawColor(0);
doc.setFillColor(255,0,0);
doc.rect(120, 20, 10, 10, 'FD'); // filled red square with black borders



doc.roundedRect(140, 20, 10, 10, 3, 3, 'FD'); // filled red square with black borders and rounded corners


doc.save('Test.pdf');</pre>
<a href="javascript:demoRectangles()" class="button">Run Code</a></p></div>

Expand Down
4 changes: 3 additions & 1 deletion examples/js/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ function demoRectangles() {
doc.setDrawColor(0);
doc.setFillColor(255,0,0);
doc.rect(120, 20, 10, 10, 'FD'); // filled red square with black borders


doc.roundedRect(140, 20, 10, 10, 3, 3, 'FD'); // filled red square with black borders and rounded corners

doc.save('Test.pdf');
}

Expand Down

0 comments on commit 092ce81

Please sign in to comment.