Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (28 sloc) 0.481 kb
<!doctype html>
<html>
<head>
<script src="../donatello.js" type="text/javascript"></script>
<script>
/**
*/
function main() {
var paper = Donatello.paper('paper-div', 20, 20, 300, 300 );
var rect = paper.rect( 30, 100, 100, 100, {
'fill':'green',
stroke:'red',
'stroke-width':5,
r:20
});
}
</script>
<style>
#paper-div {
border: 1px solid black
}
</style>
</head>
<body onload='main();'>
<div id="paper-div">
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.