top of page

PROJECT UPDATES

Pixel Testing

I started this project as a basic exploration of interacting with a dedicated area on screen. This ended up being quite literal, as I created a pixel canvas to edit. My primary goal was to translate the mouse input into something visible on screen, and this ended up being quite straightforward. Whenever you click, the program creates a square at the location of your mouse, and you can click on different colored areas to change your selected color. Although it appears fairly fluid on the outside, I created the code by brute force. That is, in order to ‘press’ a button to change a color, I tested to see if the x/y coordinates of the mouse were within a specific range. For example, if I wanted to change the color, I would have checked if the mouse’s x-coordinate was between 0 and 100 and the y-coordinate was between 400 and 500. However, because I did this for every color, I ended up with a difficult to navigate, confusing mess that barely works.  Ultimately, this project is just a way to get familiar with how to utilize coordinates and mouse input, so hopefully I’ll be more efficient in the future.

Visit Code

© 2019 by Jonathan Hodson. All rights reserved whatever that means

bottom of page