1> Red = 2.
2
2> Green = 61.
61
3> Blue = 20.
20
4> Mem = <<Red:5, Green:6, Blue:5>>.
<<23,180>>
-------------------------------------
<<23,180>> == 00010 111101 10100
Erlang Bit Syntax is nice.
2
2> Green = 61.
61
3> Blue = 20.
20
4> Mem = <<Red:5, Green:6, Blue:5>>.
<<23,180>>
-------------------------------------
<<23,180>> == 00010 111101 10100
Erlang Bit Syntax is nice.