// RGBRunesFromImage creates a slice of RGBRunes from an Image.
RGBRunesFromImage creates a slice of RGBRunes from an Image.
// RGBRunesFromImage creates a slice of RGBRunes from an Image .
func RGBRunesFromImage(i image.Image) RGBRunes {
	bounds := i.Bounds()
	width := bounds.Max.X
	height := bounds.Max.Y
	rgbRunes := make([]RGBRune, 0, width*height)
	for y := 0; y < height; y++ {
		for x := 0; x < width; x++ {
			rgbRunes = append(rgbRunes, RGBRuneFromColor(i.At(x, y)))
		}
	}
	return RGBRunes{
		rgbRunes,
		width,
		height,
	}
}
func RGBRunesFromImage ( i image . Image ) RGBRunes { bounds := i . Bounds ( ) width := bounds . Max . X height := bounds . Max . Y rgbRunes := make ( [ ] RGBRune , 0 , width * height ) for y := 0 ; y < height ; y ++ { for x := 0 ; x < width ; x ++ { rgbRunes = append ( rgbRunes , RGBRuneFromColor ( i . At ( x , y ) ) ) } } return RGBRunes { rgbRunes , width , height , } }
RGBRunesFromImage creates a slice of RGBRunes from an Image.
RGBRunesFromImage creates a slice of RGBRunes from an Image .