1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-09-09 04:30:59 +02:00

Extracted all color resources into a common file.

This commit is contained in:
David Carley
2012-03-13 10:02:35 -05:00
parent 9e5d384ba4
commit f2816b7ca9
42 changed files with 273 additions and 82 deletions

View File

@@ -7,14 +7,22 @@
//
// Flat sheets
//
MDF6 = [ "MD", "MDF sheet", 6, [0.4, 0.4, 0.2, 1 ], true];
MDF10 = [ "MD", "MDF sheet", 10, [0.4, 0.4, 0.2, 1 ], true];
MDF12 = [ "MD", "MDF sheet", 12, [0.4, 0.4, 0.2, 1 ], true];
PMMA6 = [ "AC", "Acrylic sheet", 6, [1, 1, 1, 0.5 ], false];
PMMA8 = [ "AC", "Acrylic sheet", 8, [1, 1, 1, 0.2 ], false];
PMMA10 = [ "AC", "Acrylic sheet",10, [1, 1, 1, 0.2 ], false];
glass = [ "GL", "Glass sheet", 2, [1, 1, 1, 0.25 ], false];
DiBond = [ "DB", "Dibond sheet", 3, [0.5, 0.5, 0.5, 1 ], false];
// The "Soft" parameter determines if the sheet material will hold threads.
// If not, nuts will be used to retain screws.
// The "Color" parameter is a quad-array: [R, G, B, Alpha]
// [ Code, Description, Thickness, Color, Soft]
MDF6 = [ "MD", "MDF sheet", 6, MDF_brown, true]; // ~1/4"
MDF10 = [ "MD", "MDF sheet", 10, MDF_brown, true]; // ~3/8"
MDF12 = [ "MD", "MDF sheet", 12, MDF_brown, true]; // ~1/2"
PMMA6 = [ "AC", "Acrylic sheet", 6, acrylic_clear, false]; // ~1/4"
PMMA8 = [ "AC", "Acrylic sheet", 8, acrylic_clear, false]; // ~5/16"
PMMA10 = [ "AC", "Acrylic sheet",10, acrylic_clear, false]; // ~3/8"
glass = [ "GL", "Glass sheet", glass_thickness, glass_clear, false];
DiBond = [ "DB", "Dibond sheet", 3, dibond_grey, false];
function sheet_thickness(type) = type[2];
function sheet_is_soft(type) = type[4];