1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-01-16 13:08:15 +01:00

Restored Lumintop colour to white and made text black on white batteries.

This commit is contained in:
Chris Palmer 2024-10-10 00:14:58 +01:00
parent 7b421570b4
commit e001cc46a3
2 changed files with 4 additions and 5 deletions

View File

@ -38,10 +38,10 @@ bcontact = ["bcontact", 9.33, 9.75, 0.4, 2.86, 6, [1.6, 3, 5], [4.5, batt_spring
// t r c
// e t
// r
LUMINTOP = ["LUMINTOP", "Cell LUMINTOP 18650 LION with charger", 70.7, 18.4, 13, 5, 1, "grey", [[3.32, 5], [3.32, -5]], 4, bcontact];
LUMINTOP = ["LUMINTOP", "Cell LUMINTOP 18650 LION with charger", 70.7, 18.4, 13, 5, 1, "white", [[3.32, 5], [3.32, -5]], 4, bcontact];
S25R18650 = ["S25R18650", "Cell Samsung 25R 18650 LION", 65, 18.3, 13, 10, 0, "MediumSeaGreen", [], 0, bcontact];
AACELL = ["AACELL", "Cell AA", 50.5, 14.5, 11, 5.5, 1, "grey", [], 0, bcontact];
AAACELL = ["AAACELL", "Cell AAA", 44.5, 10.5, 8, 3.8, 0.8, "grey", [], 0, bcontact];
AACELL = ["AACELL", "Cell AA", 50.5, 14.5, 11, 5.5, 1, "grey", [], 0, bcontact];
AAACELL = ["AAACELL", "Cell AAA", 44.5, 10.5, 8, 3.8, 0.8, "grey", [], 0, bcontact];
CCELL = ["CCELL", "Cell C", 50, 26.2, 20, 7.5, 1.5, "brown", [], 0, bcontact];
DCELL = ["DCELL", "Cell D", 61.5, 34.2, 22, 8.2, 2.4, "brown", [], 0, bcontact];
A23CELL = ["A23CELL", "Cell A23 12v", 28.5, 10.3, 5.2,5.2, 1.0, "silver", [], 0, bcontact];

View File

@ -112,8 +112,7 @@ module battery(type) { //! Draw a battery
color(["red","green","blue"][$i])
cylinder(d = 1.5, h = eps);
color("white")
translate([0, 0, 0])
color(battery_colour(type) == "white" ? "black" : "white")
rotate([0, 0, 90])
cylindrical_wrap(battery_diameter(type)/2)
resize([0, battery_diameter(type)], auto = true)