---
title: "Discussion on \"Vanilla JavaScript canvas images to black and white\" | Hashnode"
description: "Discussion on \"Vanilla JavaScript canvas images to black and white\". Yesterday, we saw how to use images on our canvas and even invert the colours.\nBut what if we want to convert them to only three colour options?\nThe colour options we will be using are;\n\nblack\nwhite\ngrey (only 1 type!)\n\nThis will abstract our image a..."
url: "https://hashnode.com/posts/vanilla-javascript-canvas-images-to-black-and-white/5f64419242517c2434461f93"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Vanilla JavaScript canvas images to black and white](https://h.daily-dev-tips.com/vanilla-javascript-canvas-images-to-black-and-white?utm_source=hashnode&utm_medium=feed)

Yesterday, we saw how to use images on our canvas and even invert the colours. But what if we want to convert them to only three colour options? The colour options we will be using are; black white grey (only 1 type!) This will abstract our image a...

Sep 18, 2020 · 3 min read · h.daily-dev-tips.com  
Read the article

-   [#html-canvas](https://hashnode.com/tag/html-canvas)
-   [#canvas](https://hashnode.com/tag/canvas)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming](https://hashnode.com/tag/programming)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

  
[View profile](https://hashnode.com/@dailydevtips)

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 2

Markdown supported · ⌘↵ to post

[Rahul](https://hashnode.com/@RAHULISM)

[Sep 18, 2020](https://hashnode.com/posts/vanilla-javascript-canvas-images-to-black-and-white/5f64419242517c2434461f93/comment/5f645367a2a2fb24551278e9)

WOAAH!!! the series is awesome for me to learn. I started yesterday. Amazing.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Sep 18, 2020](https://hashnode.com/posts/vanilla-javascript-canvas-images-to-black-and-white/5f64419242517c2434461f93/comment/5f645367a2a2fb24551278e9#reply-5f64d9b696b4a436fe1362b3)

Awesome glad you find them useful 🔥

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Sep 18, 2020](https://hashnode.com/posts/vanilla-javascript-canvas-images-to-black-and-white/5f64419242517c2434461f93/comment/5f64468ba2a2fb245512787b)

Love this, thanks for sharing!

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Sep 18, 2020](https://hashnode.com/posts/vanilla-javascript-canvas-images-to-black-and-white/5f64419242517c2434461f93/comment/5f64468ba2a2fb245512787b#reply-5f64d9c77e393736dd75f341)

My pleasure, love exploring the canvas, that alone could be a blog haha.
