Skip to content

Conversation

@Electro707
Copy link
Contributor

@Electro707 Electro707 commented Jan 1, 2024

This PR adds a 5-color code bands and a zero/short band to the existing horizontal through-hole resistor models. The 5-color bands or the zero band is displayed by my fork of PCBdraw, see yaqwsx/PcbDraw#156

This change is meant to be backwards compatible with the current implementation of coloring in pcbdraw.

This PR also adds some more resistor sizes, after checking that they are indeed the "bean" type in KiCAD. Proportions are off, so I need to fix that (perhaps even make a new template for those larger sizes)

This PR also adds vertical resistors.

Latest image:
image

TODO:

  • Change the larger size resistors to not look odd, perhaps make a new template for them

@Electro707
Copy link
Contributor Author

image

I think this looks slightly better. Thoughts on improvement? (especially for the taller large ones)

@yaqwsx
Copy link
Owner

yaqwsx commented Jan 30, 2024

I think they look OK. One proposal - maybe adding a gradient to a darker color on one side or a thicker outline could increase the contrast between PCB and the resistor. Especially the resistors without the bands seem to blend with the PCB.

@Electro707
Copy link
Contributor Author

image

I went back and re-did how the generator generates the resistors, mostly because the outline did not look right when scaled (got squished to one side). I also ever so slightly darkened the resistor up, not sure how low I should go before it looks too orange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants