Fixed typo in comment

This commit is contained in:
Zoraiz 2021-05-12 18:22:11 +05:00
parent 74c36a3063
commit c8d396ae3a
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ Image formats currently supported:
<br>
### Example ([Source](https://medium.com/@sean.glancy/practical-applications-of-binary-trees-3097cf663062))
### Example ([Source](https://medium.com/@sean.glancy/practical-applications-of-binary-trees-3097cf663062)):
![Example](https://raw.githubusercontent.com/TheZoraiz/ascii-image-converter/master/example_images/tree.png)
### ASCII Art:

View File

@ -33,11 +33,11 @@ import (
)
// This function shrinks the passed image according to passed dimensions or terminal
// size if none are passed turns each pixel into grayscale to simplify getting numeric
// data for ASCII character comparison
// size if none are passed. It turns each pixel into grayscale to simplify getting numeric
// data for ASCII character comparison.
//
// The returned 2D uint32 slice contains each corresponding pixel's value ranging from
// 0 to 65535
// 0 to 65535.
func ConvertToTerminalSizedSlices(img image.Image, dimensions []int) [][]uint32 {
var terminalWidth, terminalHeight int