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

remove error messages

roundabout,
created on Saturday, 22 November 2025, 19:53:55 (1763841235), received on Saturday, 22 November 2025, 19:53:57 (1763841237)
Author identity: vlad <vlad.muntoiu@gmail.com>

80d0d5e6d1e2a803bd6243449a7c7746eb2de273

material_shading.py

@@ -15,7 +15,6 @@ def get_fill(elem):

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            def get_bottom_edge_colour(elem):
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                fill = inkex.colors.Color(get_fill(elem))
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                h, s, l = fill.to("hsl").hue / 255 * 360, fill.to("hsl").saturation / 255 * 100, fill.to("hsl").lightness / 255 * 100
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            inkex.errormsg((h, s, l))
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                if s < 10:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    if l > 80:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        return "#212121", 0.1