Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenSCAD 输出中的透明度可以通过添加%到元素来实现,但这不允许将透明元素放置在具有更高透明度(例如以百分比表示)的周围元素中,并且可以看到(不透明)元素在一个透明元素里面的一个透明元素。怎么做?
%
的 a 值color([r,g,b,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);
或不同的颜色:
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);