Kar*_*ter 3 transparency openscad
OpenSCAD 输出中的透明度可以通过添加%
元素来实现,但这不允许将透明元素放置在具有更高透明度(例如以百分比表示)的周围元素中,并且可以看到(不透明)元素在透明元素内的透明元素中。怎么做?
的 a 值color([r,g,b,a])
可用于控制透明度,例如:
color([0.5,0.5,0,0.8]) cube(size=[10,10,10], center=true);
%cube(size=[20,20,20], center=true);
Run Code Online (Sandbox Code Playgroud)
或不同颜色:
color([0.5,0.5,0,0.8]) cube(size=[10,10,10], center=true);
color([0,0.5,0.5,0.3]) cube(size=[20,20,20], center=true);
Run Code Online (Sandbox Code Playgroud)