Skip to content

Commit

Permalink
Add NotImplementedError to gradientpath
Browse files Browse the repository at this point in the history
  • Loading branch information
stuaxo committed Apr 29, 2016
1 parent 49a03cf commit 9aa9a08
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/colors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3092,7 +3092,12 @@ def __init__(self, path, clr1, clr2, type="radial", dx=0, dy=0, spread=1.0, angl
You can tweak this background's opacity with the alpha parameter.
"""


raise NotImplementedError("gradientpath not implemented yet.")
# gradientpath is not implemented, code below is from Nodebox
# and implemented with CoreImage
# this will need to be re-implemented in Cairo to work in Shoebot.

self.path = path
self.path.inheritFromContext()
self.path.fillcolor = colorlist(clr1, clr2).average
Expand Down Expand Up @@ -3260,6 +3265,9 @@ def cmp(a, b):
_ctx.reset()


#1.9.4.7-sb.3
#raise NotImplementedError for parts not yet ported from CoreImage to Cairo

#1.9.4.7-sb.2
#Added ability to load aggregated color xml files from zip

Expand Down

0 comments on commit 9aa9a08

Please sign in to comment.