ascii

package module
v0.0.0-...-49b9eba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 8 Imported by: 0

README

Ascii Art

Simple program that will change a image to ascii art

Grey Scale

Found different algorithms to change image to grey scale

  • Luminance: Y = 0.299R + 0.587G + 0.114B
  • Mean: Y = (R + G + B) / 3 (would have used this one if didn't fund the others)
  • Luma: Y = 0.2126R + 0.7152G + 0.0722B
  • Luster: Y = (min(R, G, B) + max(R, G, B))/2

Will have intermidate step to convert images to grey scale, in testing will compare them

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageToGreyScales

func ImageToGreyScales(fileName string) ([]string, error)

func Luma

func Luma(c color.Color) color.Color

func Lumin

func Lumin(c color.Color) color.Color

func Luster

func Luster(c color.Color) color.Color

func Max

func Max(a []uint32) uint32

func MaxMin

func MaxMin(a []uint32) (uint32, uint32)

func Mean

func Mean(c color.Color) color.Color

func Min

func Min(a []uint32) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL