diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-06-20 16:56:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-20 16:56:00 +0200 |
| commit | c017cae01aa33a876795ec5da1438e8ec0f11fc5 (patch) | |
| tree | ace90dd7c09b6bbddd53cf4b351cb55ef56f42c0 /lib/svg/rendering.py | |
| parent | c030e3283530bc1d0f4bad219f4c61db22750506 (diff) | |
gray out randomize stitch length param when random stitch length is disabled (#3002)
Diffstat (limited to 'lib/svg/rendering.py')
| -rw-r--r-- | lib/svg/rendering.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/svg/rendering.py b/lib/svg/rendering.py index a37073fb..ee0b5d0c 100644 --- a/lib/svg/rendering.py +++ b/lib/svg/rendering.py @@ -56,11 +56,12 @@ stitch_path = ( "l-0.55,-0.1,0.55,0.1" # Bottom-left whisker "z") # return to start + def generate_realistic_filter() -> inkex.BaseElement: """ Return a copy of the realistic stitch filter, ready to add to svg defs. """ - filter = inkex.Filter(attrib = { + filter = inkex.Filter(attrib={ "style": "color-interpolation-filters:sRGB", "id": "realistic-stitch-filter", "x": "0", @@ -71,27 +72,27 @@ def generate_realistic_filter() -> inkex.BaseElement: }) filter.add( - inkex.Filter.GaussianBlur(attrib = { + inkex.Filter.GaussianBlur(attrib={ "edgeMode": "none", "stdDeviation": "0.9", "in": "SourceAlpha", }), inkex.Filter.SpecularLighting( - inkex.Filter.DistantLight(attrib = { + inkex.Filter.DistantLight(attrib={ "azimuth": "-125", "elevation": "20", - }), attrib = { + }), attrib={ "result": "result2", "surfaceScale": "1.5", "specularConstant": "0.78", "specularExponent": "2.5", } ), - inkex.Filter.Composite(attrib = { + inkex.Filter.Composite(attrib={ "in2": "SourceAlpha", "operator": "atop", }), - inkex.Filter.Composite(attrib = { + inkex.Filter.Composite(attrib={ "in2": "SourceGraphic", "operator": "arithmetic", "result": "result3", |
