scottbez1 / splitflap

DIY split-flap display
https://scottbez1.github.io/splitflap
Other
3.09k stars 257 forks source link

CAD Render Colors #105

Closed dmadison closed 3 years ago

dmadison commented 3 years ago

I've made a number of changes to the assembly to make it easy to adjust the colors.

First, the assembly color variations are now generated from a single base color. This means you can change the one 'assembly' color and still keep the color variation between parts. The scalars were calculated from the current values so everything should keep the same appearance as before. The etch color, similarly, has been broken out into a variable and can now be changed.

Second, I've added variables for the hardware (nuts + bolts) and flap color. This allows you to change out the steel hardware for black oxide or swap the flaps from white to black. The letter color is calculated as the inverse of the flap color, so white flaps get black letters and black flaps get white letters (and red flaps get cyan letters and so on and so forth).

There should be no functional changes to the design.

Default: MDF, white flaps, steel hardware

sf-colors-default

Demo: Matte black acrylic, black flaps, black oxide hardware

sf-colors-matte-black

Using:

assembly_color = [0.1, 0.1, 0.1];
etch_color = [0.5, 0.5, 0.5];
hardware_color = [0.2, 0.2, 0.2];
flap_color = [0, 0, 0];