Questions tagged [rgb]
RGB stands for Red-Green-Blue and specifies a color using three values, which represent the respective amount of red, green, and blue in the color. RGB is the basis for the color model used by most color display devices nowadays.
3,558
questions
0
votes
0
answers
16
views
Building a custom keyboard with Cherry green switches, RGB backlit, trying to find keycaps / switches that do not bleed light
I am building a custom keyboard. 102 key, all metal (aluminum). I like the feel of Cherry MX Green 80 Clicky) switches but unsure if they're compatible with an RGB backlight. The aluminum chassis I ...
1
vote
1
answer
25
views
Trying to decipher how RGB values calculate integer values
I'm currently looking at some really old legacy code that unfortunately doesn't have any documentation/comments. I have a palette file that contains rgb values in a comma separated file, and integers ...
1
vote
1
answer
29
views
How to change rgb values using numpy where function in python
from PIL import Image
import numpy as np
target_file = r'D:\rgb_test\C\test.tga'
img = Image.open(target_file)
basePixel = np.array(img)
old_rgb_value = (255, 0, 0)
new_rgb_value = (57, 57, 57)
I ...
0
votes
1
answer
22
views
PDFLib detect RGB colors in object then convert it to CMYK
I am importing a pdf file to a page using PDFLib. How can I detect if RGB color is used on the objects within the file that I am importing then convert them to CMYK?
Below is my php code.
$p = new ...
-4
votes
1
answer
61
views
Converting a HEX color value to RGB in JavaScript
I have this code:
let hexInt = parseInt(hex, 16);
let r = (hexInt >> 16) & 255;
let g = (hexInt >> 8) & 255;
let b = hexInt & 255;
I know that a HEX digit requires 4 bits to ...
0
votes
0
answers
22
views
RGB and CMYK Ghostscript color detection
To check whether PDF files contain color, we use Ghostscript inkcov. This works well for CMYK files, but in the case of RGB formatted files, they are first converted to CMYK and then the color ...
0
votes
0
answers
38
views
pyautogui.pixel(x,y) rgb values always changing even when pixel color isn't changing
This doesn't even happen all the time, sometimes it works perfectly fine and consistently returns the same rgb values, but a majority of other times it returns rgb values that are close to the actual ...
2
votes
1
answer
48
views
Replace 3D array elements with numpy
I have a 3D array filled with RGB values and I need to replace some "pixels" with another value as fast as possible.
The array looks like this:
[[[ 78 77 75]
[ 72 70 67]
[ 72 70 67]...
1
vote
0
answers
46
views
Ghostscript RGB to CMYK PDF unwanted yellow channel gray color is visible
I am trying to convert high resolution pdf from RGB format to CMYK format for printing.
I am using following commands to create new cmyk profile
collink -v -G AdobeRGB1998.icc ...
-1
votes
1
answer
69
views
How to blend two RGB colours?
I have a C# application where I have a number of locations and each location has a number of nodes. I ping each location and if it responds it's GREEN, the shade of GREEN depends on the response time; ...
0
votes
0
answers
87
views
Efficient YUV to RGB (Image to Bitmap) conversion in Android
I'm trying to apply YUV (Media.Image) to RGB (Bitmap) conversion in Android. I am currently using this official code from Android Camera samples (the code below) but it uses RenderScript which is ...
0
votes
1
answer
80
views
How can I specifically change or replace the HUE for the color red?
My script is not working as I expected. Is there anything wrong with my code?
from PIL import Image
import colorsys
def change_red_to_blue_hsl(image_path, output_path):
img = Image.open(...
3
votes
1
answer
104
views
delphi: RGB to HSL incorrect
i'm want to do RGB to HSL with delphi, my code:
uses
System.UIConsts;
procedure TForm1.Button3Click(Sender: TObject);
var
H, S, L: Single;
begin
var R := 157;
var G := 157;
var B := 152;
...
0
votes
0
answers
39
views
Using ICC profile for color conversion in java gives wrong CMYK values for RGB 128,128,128 (gray), why does this happen
I'm trying to create java code for converting RGB to CMYK, CMYK to RGB and CMYK to CMYK values based on input and output icc profiles.
Converting a given value from RGB to CMYK and using the outcome ...
0
votes
0
answers
12
views
How to Interpret RGB Values from an Old Paradox Database?
I’m working with an old Paradox database that stores RGB values for a CORB dispensing machine.enter image description here However, I’m having trouble understanding the RGB values. For example, the ...