Created
September 15, 2012 06:16
-
-
Save lachenmayer/3726561 to your computer and use it in GitHub Desktop.
Paper.js does not fill - test case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 5 | |
html | |
head | |
script(src='js/paper.js', type='text/javascript') | |
script(type='text/javascript') | |
window.onload = function() { | |
var canvas = document.getElementById('canvas'); | |
paper.setup(canvas); | |
var rect = new paper.Path.Rectangle(new paper.Point(50, 50), new paper.Point(200, 200)); | |
rect.strokeColor = '#000000'; | |
rect.fillColor = '#ff0000'; | |
paper.view.draw(); | |
} | |
body | |
canvas(id='canvas', resize) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment