Skip to content

Add option for font/stroke color - #3

Open
len0rd wants to merge 2 commits into
Arth-ur:masterfrom
len0rd:feature/len0rd/fontcolor
Open

Add option for font/stroke color#3
len0rd wants to merge 2 commits into
Arth-ur:masterfrom
len0rd:feature/len0rd/fontcolor

Conversation

@len0rd

@len0rd len0rd commented Feb 6, 2025

Copy link
Copy Markdown

Thanks for this great project! Continue to use this across multiple Sphinx doc projects.

This PR adds an option for specifying the color to use for all outlines/strokes/fonts.

For instance running something like this:

python -m bit_field --fontcolor "#FF4500" --lanes 2 readme_alpha.json

will result in this SVG:

orange_alpha

you can also use svg color names:

python -m bit_field --fontcolor blue --lanes 2 readme_alpha.json

blue_alpha

And the default remains as black:

python -m bit_field --lanes 2 readme_alpha.json

default_alpha

I realize adding more functionality to something that's meant to be a direct port is not necessarily desirable. So i understand if you dont want to merge this in. I saw a need for this to make my bitfield diagrams more legible on dark-mode sites.

@len0rd
len0rd force-pushed the feature/len0rd/fontcolor branch from 2c87165 to 25d8969 Compare February 6, 2025 15:49
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.

1 participant