Skip to content

utils and color map #1

Description

@eylles

added the utils from pywal to my branch sincei feel they will be necessary here.

i will proceed to create a color map file in a plain text, we can format it later to something convenient, but my idea is to have all colors and their conversions to other formats in some columns, like:

color hex color rgb color rgba

that way we can generate the necessary variations from the 16 colors pywal returns (or 9 colors if using the original pywal), and use some simple math to know the delta from the variations so that we can use an adjust function (maybe even the color mix one) and do the adjust for variation

for example in these colors

    black="0 0 0 255"
    dark="28 33 42 255"
    almostBlack="22 25 28 255"

say we use for black the color0 generated by pywal, then we know the dark variation has a
delta of rgb '+28 +33 +42' and almostBlack has a delta of rgb '+22 +25 +28' over the black color.

we can decide on the final format for these deltas later but this is what i plan on doing.

as for this issue, i will add a commit to close it once the contents of the branch reach the master branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions