Created
December 28, 2016 12:56
-
-
Save koenbok/f97c7ffb46a54b69ca3df1d84d49e359 to your computer and use it in GitHub Desktop.
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
# Don't forget to add Frabric to the index.html file | |
# https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.2/fabric.js | |
layer = new CanvasLayer | |
# Create a new Fabric canvas instance | |
canvas = new fabric.Canvas(layer.canvas) | |
rect = new fabric.Circle | |
radius: 100 | |
fill: "#0055DD" | |
stroke: "#00AAFF" | |
strokeWidth: 20 | |
canvas.add(rect) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment