1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-11 09:53:58 +02:00

Added alpha parameter to stl_colour()

This commit is contained in:
Chris Palmer
2020-04-07 17:02:10 +01:00
parent b4379907a2
commit 147ff9b24f
2 changed files with 7 additions and 7 deletions

View File

@@ -18,8 +18,8 @@
//
//
//! Bill Of Materials generation via echo and the ```bom.py``` script. Also handles exploded assembly views and posing. Assembly instructions can precede the module
//! definition that makes the assembly.
//! Bill Of Materials generation via echo and the ```bom.py``` script. Also handles exploded assembly views and posing.
//! Assembly instructions can precede the module definition that makes the assembly.
//!
//! Assembly views shown in the instructions can be large or small and this is deduced by looking at the size of the printed parts involved and if any routed
//! parts are used.
@@ -101,9 +101,9 @@ module assembly(name, big = undef) { //! Name an assembly that will appear on
echo(str("~}", name, "_assembly"));
}
module stl_colour(colour) { //! Colour an stl where it is placed in an assembly
module stl_colour(colour = pp1_colour, alpha = 1) { //! Colour an stl where it is placed in an assembly. ```alpha``` can be used to make it appear transparent.
$stl_colour = colour;
color(colour)
color(colour, alpha)
children();
}