Skip to content

Commit 85dda5d

Browse files
Remove color adjustment script
Automatically built into documentation
1 parent 89204e6 commit 85dda5d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

docs/hardware_overview.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,6 @@ The GNSS Flex pHAT also comes populated with two sets of 2x10 pin, 2mm pitch mal
1717
<!-- Import the component -->
1818
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js"></script>
1919

20-
<!-- Material color adjustment (for soldermask) -->
21-
<script type="module" >
22-
const modelViewer = document.querySelectorAll("model-viewer");
23-
// To debug in console
24-
// let material = modelViewer.model.materials;
25-
26-
for (const iteration of modelViewer) {
27-
iteration.addEventListener('load', () => {
28-
const material = iteration.model.materials;
29-
// material[material.length-1].pbrMetallicRoughness.setBaseColorFactor([224/255, 49/255, 29/255]); // #E0311D
30-
material[material.length-1].pbrMetallicRoughness.setBaseColorFactor([224/255, 0, 0]); // #E00000
31-
material[material.length-1].pbrMetallicRoughness.setMetallicFactor(.8);
32-
material[material.length-1].pbrMetallicRoughness.setRoughnessFactor(.7);
33-
});
34-
};
35-
</script>
36-
3720

3821
<div class="grid cards desc" markdown>
3922

0 commit comments

Comments
 (0)