@@ -88,6 +88,7 @@ def dfl(name: str, diameter: float, elongation: float, strength: float, weight:
8888 "yellow" : Color .parse_hex ("FFDD00" ),
8989 "orange" : Color .parse_hex ("EB6A27" ),
9090 "red" : Color .parse_hex ("E2001A" ),
91+ "pink" : Color .parse_hex ("E30066" )
9192 }
9293 )
9394
@@ -99,20 +100,35 @@ def dfl(name: str, diameter: float, elongation: float, strength: float, weight:
99100
100101dfl ("350" , 2.7 , 3.5 , 3500 , 4.98 )
101102
103+ def dsl (name : str , diameter : float , elongation : list [list [float ]], strength : float , weight : float ) -> None :
104+ LineType (
105+ f"liros.dsl{ name } " ,
106+ diameter ,
107+ elongation ,
108+ strength ,
109+ weight ,
110+ sheated = True ,
111+ colors = {
112+ "yellow" : Color .parse_hex ("FFDD00" ),
113+ "orange" : Color .parse_hex ("EB6A27" ),
114+ "red" : Color .parse_hex ("E2001A" ),
115+ "pink" : Color .parse_hex ("E30066" )
116+ }
117+ )
102118
103- LineType ( "liros.dsl25 " , 0.8 , [[340 , 3.7 ]], 250 , 0.53 , True )
119+ dsl ( "25 " , 0.8 , [[340 , 3.7 ]], 250 , 0.53 )
104120
105- LineType ( "liros.dsl35 " , 0.9 , [[380 , 3.6 ]], 350 , 0.64 , True )
121+ dsl ( "35 " , 0.9 , [[380 , 3.6 ]], 350 , 0.64 )
106122
107- LineType ( "liros.dsl70 " , 0.95 , [[100 , 0.19 ], [300 , 0.41 ]], 700 , 0.67 , True )
123+ dsl ( "70 " , 0.95 , [[100 , 0.19 ], [300 , 0.41 ]], 700 , 0.67 )
108124
109- LineType ( "liros.dsl110 " , 1.2 , [[100 , 0.23 ], [300 , 0.73 ]], 1100 , 1.02 , True )
125+ dsl ( "110 " , 1.2 , [[100 , 0.23 ], [300 , 0.73 ]], 1100 , 1.02 )
110126
111- LineType ( "liros.dsl140 " , 1.25 , [[100 , 0.54 ], [300 , 0.42 ]], 1400 , 1.14 , True )
127+ dsl ( "140 " , 1.25 , [[100 , 0.54 ], [300 , 0.42 ]], 1400 , 1.14 )
112128
113- LineType ( "liros.dsl350 " , 2. , [[100 , 0.15 ], [300 , 0.33 ]], 3500 , 3.25 , True )
129+ dsl ( "350 " , 2. , [[100 , 0.15 ], [300 , 0.33 ]], 3500 , 3.25 )
114130
115- LineType ( "liros.dsl600 " , 2.4 , [[100 , 0.08 ], [300 , 0.24 ]], 6000 , 4.3 , True )
131+ dsl ( "600 " , 2.4 , [[100 , 0.08 ], [300 , 0.24 ]], 6000 , 4.3 )
116132
117133def lirosdc (name : int , thickness : float , elongation : float , break_load : float , weight : float ) -> None :
118134 LineType (
0 commit comments