Skip to content

florestankorp/filter-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Solution to pset4 from Harvard's CS50X with GO: https://cs50.harvard.edu/x/2022/psets/4/filter/more/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages