Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.51 KB

README.md

File metadata and controls

45 lines (28 loc) · 1.51 KB

filter-go

This is my first attempt at writing Go.

When I set out to learn this language, I wanted to build something simple, fun and challenging:

This problem-set felt like a worthwhile challenge because it had just the right amount of complexity paired with the playfulness of manipulating bytes, sometimes leading to unexpected and interesting glitches:

Calculation errors when reversing the image

glitch-02

Calculation errors when computing averages

glitch-01

About

This is a command line application that allows the user to input a BMP image and apply a transformation to it. The program then outputs the result.

The app can perform the following transformations:

  • Convert the image to grayscale
  • Reflect the image horizontally
  • Blur the image

Requirements

You need Go to run this app. You can find instructions on how to install it here

Usage

From the root of the project you can run

$ go build && ./filter-go [flag] <infile>.bmp <outfile>.bmp

To try out the app use the sample BMP files stored in the /assets folder. Resulting files will be written to the /out folder.

Flags

  -b    Blur image
  -g    Make image grayscale
  -r    Reflect image horizontally

Thanks

All the Discord Gophers that took the time to answer my questions <3