建立方向盘项目初始版本

This commit is contained in:
2026-10-29 22:04:55 +08:00
commit 9962cbfbce
834 changed files with 1519203 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from PIL import Image, ImageDraw, ImageFont
from pathlib import Path
p=Path(r'C:\projects\wheel\models\turn_signal_cam_concept')
out=Image.new('RGB',(1800,1040),'white'); d=ImageDraw.Draw(out)
font=r'C:\Windows\Fonts\msyh.ttc'
f=ImageFont.truetype(font,36); small=ImageFont.truetype(font,24); tiny=ImageFont.truetype(font,21)
d.text((44,20),'转向灯自动回正轴套 · 概念示意',font=f,fill='#15263d')
d.text((44,77),'12 mm 轴 / 4 mm 平键槽 · 凸块尺寸和触发位置待实物确认',font=small,fill='#566579')
a=Image.open(p/'perspective.png').convert('RGB'); a.thumbnail((980,735));out.paste(a,(15,170))
b=Image.open(p/'front.png').convert('RGB');b.thumbnail((690,520));out.paste(b,(1040,170))
d.text((50,135),'立体示意',font=small,fill='#15263d');d.text((1055,135),'沿轴向看',font=small,fill='#15263d')
colors=[('#1372b0','蓝色:分体夹紧轴套与一体凸块'),('#777e83','灰色:12 mm 轴(示意)'),('#dfa33c','金色:金属平键(示意)'),('#333b43','深灰:夹紧螺丝与螺母(示意)')]
for i,(c,t) in enumerate(colors):
x=1055;y=720+i*45;d.rounded_rectangle((x,y+5,x+25,y+30),radius=3,fill=c);d.text((x+38,y),t,font=tiny,fill='#243447')
d.text((44,975),'此图只用于讨论结构;未按开关实物建模,不能作为打印文件。',font=small,fill='#8b3f36')
out.save(p/'概念示意.png')