By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

add README.md

roundabout,
created on Saturday, 22 November 2025, 19:24:14 (1763839454), received on Saturday, 22 November 2025, 19:24:16 (1763839456)
Author identity: vlad <vlad.muntoiu@gmail.com>

dbf17ce5c04cb9d363760ee136a775a61271e1cc

README.md

@@ -0,0 +1,22 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        # Material shading for Inkscape
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        This is an Inkscape extension that applies, to any path or path-convertible
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        element, a highlighted top edge and a shaded bottom edge (of 1px each),
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        conforming to the Material icon style.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        To use it, select the path(s) you want to apply it to and engage the extension
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        from the menu. It doesn't have configuration because it would end up having a
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        very cumbersome format and lots of special cases, and it should also be fast to
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        use for making icon themes.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        Sadly it has to call another Inkscape to do the set operations, so it is slow.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        However, if you do multiple paths at once, the time doesn't multiply. In any
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        case it saves a lot of time when doing icon themes in the material style,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        probably reducing it by more than half, given that, otherwise, for each surface
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        you'd need to duplicate it two times, shift a duplicate above, precisely set the
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        colour of the unmoved duplicate, invoke the set operation and repeat this for
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        the other edge as well.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ## Example
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ![example](https://roundabout-host.com/roundabout/material-shading-inkscape/example.svg)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

example.svg

@@ -0,0 +1,79 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        <!-- Created with Inkscape (http://www.inkscape.org/) -->
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        <svg
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           width="48"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           height="48"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           viewBox="0 0 12.7 12.7"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           version="1.1"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           id="svg1"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           sodipodi:docname="example.svg"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           xmlns="http://www.w3.org/2000/svg"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                           xmlns:svg="http://www.w3.org/2000/svg">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <sodipodi:namedview
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="namedview1"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             pagecolor="#ffffff"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             bordercolor="#000000"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             borderopacity="0.25"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:showpageshadow="2"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:pageopacity="0.0"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:pagecheckerboard="0"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:deskcolor="#d1d1d1"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:document-units="px"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:zoom="17.567437"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:cx="15.312421"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:cy="21.374774"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:current-layer="svg1"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             showguides="true" />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <defs
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="defs1" />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <g
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:label="Strat 1"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             inkscape:groupmode="layer"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="layer1" />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <circle
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#f06292;fill-opacity:1;stroke-width:1.00012;stroke-linecap:square"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="path23"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             cx="4.2333331"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             cy="3.7041667"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             r="2.6458333" />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <path
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="circle8415"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#ffffff;fill-opacity:0.2;stroke-width:1.00012;stroke-linecap:square"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             d="M 4.2333333 1.0583333 A 2.6458333 2.6458333 0 0 0 1.5875 3.7041667 A 2.6458333 2.6458333 0 0 0 1.596285 3.8364583 A 2.6458333 2.6458333 0 0 1 4.2333333 1.3229167 A 2.6458333 2.6458333 0 0 1 6.8703817 3.8364583 A 2.6458333 2.6458333 0 0 0 6.8791667 3.7041667 A 2.6458333 2.6458333 0 0 0 4.2333333 1.0583333 z " />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <path
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="circle8743"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#3E2723;fill-opacity:0.2;stroke-width:1.00012;stroke-linecap:square"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             d="M 1.596285 3.571875 A 2.6458333 2.6458333 0 0 0 1.5875 3.7041667 A 2.6458333 2.6458333 0 0 0 4.2333333 6.35 A 2.6458333 2.6458333 0 0 0 6.8791667 3.7041667 A 2.6458333 2.6458333 0 0 0 6.8703817 3.571875 A 2.6458333 2.6458333 0 0 1 4.2333333 6.0854167 A 2.6458333 2.6458333 0 0 1 1.596285 3.571875 z " />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <rect
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#8bc34a;fill-opacity:1;stroke-width:1.00013;stroke-linecap:square"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="rect23"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             width="6.3499999"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             height="4.2333336"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             x="4.2333336"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             y="4.4979167" />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <path
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="rect1404"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#ffffff;fill-opacity:0.2;stroke-width:1.00013;stroke-linecap:square"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             d="M 4.2333333 4.4979167 L 4.2333333 4.7625 L 10.583333 4.7625 L 10.583333 4.4979167 L 4.2333333 4.4979167 z " />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <path
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="rect7019"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#263238;fill-opacity:0.2;stroke-width:1.00013;stroke-linecap:square"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             d="M 4.2333333 8.4666667 L 4.2333333 8.73125 L 10.583333 8.73125 L 10.583333 8.4666667 L 4.2333333 8.4666667 z " />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <path
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="rect24"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#0097a7;stroke-width:1.00013;stroke-linecap:square"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             d="M 2.1166668,7.1437502 8.4666667,11.377084 H 2.1166668 Z"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             sodipodi:nodetypes="cccc" />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <path
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="path1579"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#ffffff;stroke-width:1.00013;stroke-linecap:square;fill-opacity:0.2"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             d="M 2.1166667 7.14375 L 2.1166667 7.4083333 L 8.0697917 11.377083 L 8.4666667 11.377083 L 2.1166667 7.14375 z " />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          <path
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             id="path1827"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             style="fill:#263238;stroke-width:1.00013;stroke-linecap:square;fill-opacity:0.2"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                             d="M 2.1166667 11.1125 L 2.1166667 11.377083 L 8.4666667 11.377083 L 8.0697917 11.1125 L 2.1166667 11.1125 z " />
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        </svg>