in https://www.shadertoy.com in the following code:
void mainImage( out vec4 fragColor, in vec2 fragCoord ) { fragColor = vec4(1.0,0.0,0.0,1.0); }
which code must i put in 1.0,0.0,0.0,1.0 to obtain a rgb (76, 38, 82) color ?
i tried looking for rgb to r,g,b,a converter i found a website called: https://www.myfixguide.com/color-converter/ and i wrote the hex color that equals that rgb color; i wrote #4C2652; because it is the hex color that equals my rgb color ; and then i got that RGBA is (76,38,82,1.000) but this code doesn´ty work because in 1.0,0.0,0.0,1.0 must be only numbers from 0 to 1 so i can´t find out in this code:
void mainImage( out vec4 fragColor, in vec2 fragCoord ) { fragColor = vec4(1.0,0.0,0.0,1.0); }
which code must i put in 1.0,0.0,0.0,1.0 to obtain a rgb (76, 38, 82) color ? can you answer me that please ?