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: Non-Interpolated Colors #100

Merged
merged 3 commits into from Aug 30, 2022
Merged

feat: Non-Interpolated Colors #100

merged 3 commits into from Aug 30, 2022

Conversation

meowgorithm
Copy link
Member

@meowgorithm meowgorithm commented Aug 18, 2022

This revision introduces two new color types CompleteColor and CompleteAdaptiveColor. Not for the faint of heart, these types are for bypassing automatic color interpolation so you can specify exact colors for all color profiles:

cc := CompleteColor{
	TrueColor: "#6B51FF",
	ANSI256: "63",
	ANSI: "5",
}

cac := CompleteAdaptiveColor{
	Light: CompleteColor{
		TrueColor: "#FF51CE",
		ANSI256: "213",
		ANSI: "5",
	},
	Dark: CompleteColor{
		TrueColor: "#6B51FF",
		ANSI256: "63",
		ANSI: "5",
	},
}

Keep in mind that profiles that do not receive definitions will not be interpolated and will render as black.

@meowgorithm meowgorithm merged commit 0ee74a5 into master Aug 30, 2022
@meowgorithm meowgorithm deleted the complete-color branch August 30, 2022 20:38
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.

None yet

2 participants