Questions tagged [color]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
138 views

Changing the color of some pixels in an image in Swift

My code is working perfectly fine, except for one-thing. The performance is not up-to the mark. What I am trying to achieve is I have an image with a few circles (each circle has a border with ...
0
votes
0answers
24 views

"Smoothing" colors in mutliple-color gradient in fragment shader

TL;DR How to better avoid some of the colors in the gradient looking like brighter/darker lines and make them blend in with neighboring colors. Not too concerned with performance/color accuracy but ...
0
votes
0answers
26 views

How do I avoid doing a search to compute a "normalized color"?

Before I go on with how I tried to do this, some background. WCAG provides a method that computes luminance as part of the contrast ratio computation. What I am trying to do is given a color in RGB ...
2
votes
1answer
35 views

Colour-model classes using CRTP

I want to implement color space logic. So I started with creating some structs: ...
2
votes
1answer
67 views

*nix, *bsd, etc basic `tput` color setup

My goal with the below piece of POSIX shell code was to address the more platforms the better with shell tput colors. With this code, I now start all of my scripts, ...
2
votes
0answers
379 views

C# Color implementation with conversions from RGB to HSL and CMYK and vice versa, targetting Blazor and CSS

This is an implementation of a Color class, primarily targetting the web to be used in a Blazor app. Color.cs ...