-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradient suggestions #888
Comments
That's a pretty cool demo :) I'm marking this ticket as "possible feature" |
/cc @Kienz |
@r043v – This is really a wonderful fiddle! But WAY to complicated for a novice like me... Could you make it happen to simplify this a bit? Let's say a rectangle and a slider control for rotating the gradients angle? Would be awesome! |
3400442579
pushed a commit
to 3400442579/fabric.js
that referenced
this issue
Feb 17, 2022
let Shadows = []; let ss = `0 1px 1px #bbb,0 2px 0 fabricjs#999, 0 3px 0 fabricjs#888`.split(','); for (let i = 0; i < ss.length; i++) { Shadows.push(new fabric.Shadow(ss[i].trim())); } obj.set("shadows", Shadows)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi,
first, thank for this wonderfull editor :)
i was in trouble when using gradient, mainly due to gradient position is relative to the object center and not from the corner, maybe allowing the two origin could be great
please give back the ability to use % position :D
way of setting colors stop positions via keys names not allow multiple points at the same position,
when generating my color stop object i was forced to check key exist and add/remove 0.01 (also position is not capped to 1), allowing the definition via an array instead of an object would be pretty cool
last thing, css3 gradient allow the use of an angle instead of object perimeter position like here in canvas,
angle is much more easy to declare and switch from angle to perimeter isn't really trivial, natively allowing definition by an angle would be a great feature
i writed this conversion function :
and here is a fiddle : http://jsfiddle.net/r043v/Z7Zg7/
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: