You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
I've monkey patched the gradient add method to keep the order, and I confirm it works.
defmonkey_patch_gradient_add(self, stop):
# If no offset given, add as isifstop["offset"] isNone:
self.elements.append(stop)
return# Add before the first bigger offsetfor (i, elem) inenumerate(self.elements):
ifelem["offset"] isNone:
continueifelem["offset"] >stop["offset"]:
self.elements.insert(i, stop)
return# If no bigger found, add at the endself.elements.append(stop)
_AbstractGradient.add=monkey_patch_gradient_add