v2.10 Halloween: Colors
🎃 Halloween release 🎃
(Halloween Pumpkin by Florian Reppin)
This release is all about colors!
- Allow custom colors to be set for:
- extrusion
- travel
- top layer
- last segment
- background
- DEMO
- supports changing colors
- supports light/dark mode
Colors can be any valid THREE.Color value: css string, color name, hex value, or Color instance.
const preview = new GCodePreview.init({
canvas: document.querySelector('.gcode-previewer'),
topLayerColor: 'rgb(0, 255, 255)',
lastSegmentColor: '#fff',
extrusionColor: 'rgb(0,255, 128)',
backgroundColor: 0x101010,
travelColor: new THREE.Color('lime')
});
more pictures:
(Spider by Jason C Kessler)
Ghost by Iain Willis
Halloween ghost by Erikringwalters