# File lib/pixels.rb, line 583
583:     def color_from_rgb(r, g, b)
584:       # Pack 8-bit-per-channel values
585:       return ((r.to_i & 0xff) << 16) |
586:              ((g.to_i & 0xff) << 8) |
587:              (b.to_i & 0xff)
588:     end