Skip to content

Commit 61dc689

Browse files
Added attribution & links for color functions in utils.py
1 parent 3f53d5b commit 61dc689

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ See [`solid/examples/path_extrude_example.py`](https://github.com/SolidCode/Soli
243243
### Basic color library<a id="basic-color-library"></a>
244244
You can change an object's color by using the OpenSCAD ```color([rgba_array])``` function:
245245

246-
transparent_blue = color( [0,0,1, 0.5])(cube(10)) # Specify with RGB[A]
246+
transparent_blue = color([0,0,1, 0.5])(cube(10)) # Specify with RGB[A]
247247
red_obj = color(Red)(cube(10)) # Or use predefined colors
248248

249249
These colors are pre-defined in solid.utils:
@@ -258,8 +258,7 @@ These colors are pre-defined in solid.utils:
258258
<tr><td>* FiberBoard </td></tr>
259259
</table>
260260

261-
I took this from someone on Thingiverse and I'm ashamed that I can't find the
262-
original source. I owe someone some attribution.
261+
They're a conversion of the materials in the [MCAD OpenSCAD library](https://github.com/openscad/MCAD), as seen [here] (https://github.com/openscad/MCAD/blob/master/materials.scad).
263262

264263
### Bill Of Materials<a id="bill-of-materials"></a>
265264
Put ```@bom_part()``` before any method that defines a part, then

solid/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# ==========
2525
# = Colors =
2626
# ==========
27+
# From Hans Häggström's materials.scad in MCAD: https://github.com/openscad/MCAD
2728
Red = (1, 0, 0)
2829
Green = (0, 1, 0)
2930
Blue = (0, 0, 1)

0 commit comments

Comments
 (0)