mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-12 02:10:59 +00:00
Update gradient.class.js
This commit is contained in:
parent
92604f1ee4
commit
29b6ae03e5
1 changed files with 1 additions and 2 deletions
|
|
@ -40,13 +40,12 @@
|
|||
|
||||
color = new fabric.Color(color);
|
||||
colorAlpha = color.getAlpha();
|
||||
color = color.toRgb();
|
||||
opacity = isNaN(parseFloat(opacity)) ? 1 : parseFloat(opacity);
|
||||
opacity *= colorAlpha;
|
||||
|
||||
return {
|
||||
offset: offset,
|
||||
color: color,
|
||||
color: color.toRgb(),
|
||||
opacity: opacity
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue