lundi 6 février 2017

How to set style in fabric.js

Help set the style as the style in the picture. For several days, I try the options, but do not understand how to solve the problem.

enter image description here

var rect = new fabric.Rect({
    left: 150,
    top: 200,
    originX: 'left',
    originY: 'top',
    width: 150,
    height: 120,
    angle: -10,
    fill: 'rgba(255,0,0,0.5)',
    transparentCorners: false
  });




Aucun commentaire:

Enregistrer un commentaire