RGB to Hex
You're viewing an older version of this page (#1129). View the current version.
Interface
#include <codecogs/computing/graphics/rgb to hex.h>
using namespace Computing::Graphics;
Overview
Converts a single colour value between 0-255 to hexadecimal.
FUNCTION
rgbToHex
Converts integer values for Red, Green and Blue into Hexadecimal
Parameters
R
Red color code (0-255)
G
Green color code (0-255)
B
Blue color code (0-255)
Interactive Calculator
R
G
B
Result
Computing…
Set a range above first to export a graph.
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.