mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-06 23:46:30 +02:00
Restored Lumintop colour to white and made text black on white batteries.
This commit is contained in:
@@ -38,7 +38,7 @@ bcontact = ["bcontact", 9.33, 9.75, 0.4, 2.86, 6, [1.6, 3, 5], [4.5, batt_spring
|
|||||||
// t r c
|
// t r c
|
||||||
// e t
|
// e t
|
||||||
// r
|
// 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];
|
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];
|
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];
|
AAACELL = ["AAACELL", "Cell AAA", 44.5, 10.5, 8, 3.8, 0.8, "grey", [], 0, bcontact];
|
||||||
|
@@ -112,8 +112,7 @@ module battery(type) { //! Draw a battery
|
|||||||
color(["red","green","blue"][$i])
|
color(["red","green","blue"][$i])
|
||||||
cylinder(d = 1.5, h = eps);
|
cylinder(d = 1.5, h = eps);
|
||||||
|
|
||||||
color("white")
|
color(battery_colour(type) == "white" ? "black" : "white")
|
||||||
translate([0, 0, 0])
|
|
||||||
rotate([0, 0, 90])
|
rotate([0, 0, 90])
|
||||||
cylindrical_wrap(battery_diameter(type)/2)
|
cylindrical_wrap(battery_diameter(type)/2)
|
||||||
resize([0, battery_diameter(type)], auto = true)
|
resize([0, battery_diameter(type)], auto = true)
|
||||||
|
Reference in New Issue
Block a user