Skip to content

townsean/canvas-pixel-color-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

canvas-pixel-color-counter

A web app that counts the number of pixels in an image per a unique color. See it in action here! (work in progress)

Synopsis

Canvas Pixel Color Counter is a vanilla JS web application that accepts an image file (selected by the user) and displays the total number of pixels per a unique color.

sample output for the pixel color counter website

Motivation

I love making geeky 8-bit art (mostly from wood). Part of the tedius process is counting the number of pixels per color. I wanted to automate the process, so I created a Python script do the job. You can view the source for it here.

The script works great for my use case, but I wanted to make it more accessible for others out there that may have a similar need. To do that I needed to move away from an application that ran on the command line to something that ran in the browser with a nice user interface.

Since this is a rather simple web app that mostly utilizies the HTML5 canvas, I decided to write it using vanilla JS and CSS.

Built With

Useful Resources

Maintainers

License (MIT)

The MIT License (MIT) Copyright (c) 2019 Ashley Grenon

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Work in progress shot of a project made with help from the app

About

A web app that counts the number of pixels in an image per a unique color.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published