# Red line from Shader node to Color Ramp

I was following a tutorial in order to learn nodes for 2.8. When this line turned red and made the entire thing pink (missing textures). Does anyone know how to prevent this?

• The mix Shader node doesn't make sense there, hence the red line. 'Mix RGB' node might work for your case Jul 26 '19 at 20:12
• All of the connections are wrong. Don't connect texture's color output(yellow) to a mix shader(green). Don't connect shader outputs (green) to inputs that expect images (yellow or gray). don't conect color outputs (yellolow) to surface inputs (green). Read What is the meaning of the color of the node sockets and blender.stackexchange.com/questions/102520/…
– user1853
Jul 26 '19 at 20:31

In general, you should only connect 'like for like' - ie, green to green, grey to grey, yellow to yellow, etc. There are exceptions to this and Blender can automatically convert between some types - eg, connecting a Scalar (Grey) socket to a Color (Yellow) will automatically generate a greyscale color. Similary, connecting a Color (Yellow) to a Scalar (Grey) will average all the color channels together as (r+g+b)/3 to use the result.