Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Album-Art Based Color Shifting #394

Merged
merged 14 commits into from
Dec 4, 2022
Merged

Conversation

CharlieS1103
Copy link
Member

Going to edit the title before we merge, just thought it'd be funny.

This code isn't as clean as it can be of course, which is what I assume the review process will help with, however it does work.

New libraries/ api's used
When the song changes, it will get the main color of the album art using node vibrant,
it will then generate a scheme using thecolorapi
and the final library used is chroma, in order to sort the scheme the user actively has installed by the amount of contrast between each color

To elaborate on some things, the reason I sort the colorMap based on the relative distance between the colors is so I can get it to approximately match the order that the schemes colorapi provides are ordered in, meaning the text and the main colors should always contrast each other rather nicely. This does cause all the schemes to have a dark background with a light text so I might allow the users to change the mode colorapi generates the schemes or change the way I order them (use saturation, lumination, or some other value).

@CharlieS1103 CharlieS1103 requested a review from a team as a code owner December 3, 2022 00:00
@CharlieS1103 CharlieS1103 requested review from theRealPadster and removed request for a team December 3, 2022 00:00
@CharlieS1103 CharlieS1103 changed the title Add albumArtBasedColor shifting Minor changes Dec 3, 2022
packages/marketplace/src/constants.ts Outdated Show resolved Hide resolved
packages/marketplace/src/logic/Utils.ts Outdated Show resolved Hide resolved
packages/marketplace/src/logic/Utils.ts Outdated Show resolved Hide resolved
packages/marketplace/src/logic/Utils.ts Outdated Show resolved Hide resolved
packages/marketplace/src/logic/Utils.ts Outdated Show resolved Hide resolved
packages/marketplace/src/types/marketplace-types.d.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
theRealPadster and others added 7 commits December 3, 2022 17:36
Co-authored-by: Nam Anh <phamnamanh25@gmail.com>
Co-authored-by: Nam Anh <phamnamanh25@gmail.com>
Co-authored-by: Nam Anh <phamnamanh25@gmail.com>
Co-authored-by: Nam Anh <phamnamanh25@gmail.com>
@CharlieS1103 CharlieS1103 changed the title Minor changes feature: Album-Art Based Color Shifting Dec 3, 2022
@kyrie25 kyrie25 changed the title feature: Album-Art Based Color Shifting feat: Album-Art Based Color Shifting Dec 4, 2022
@CharlieS1103 CharlieS1103 merged commit 67b3ca3 into main Dec 4, 2022
@CharlieS1103 CharlieS1103 deleted the album-art-based-color branch December 4, 2022 02:14
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.

3 participants