java

Java Color Picker

December 30, 2011

There are 3 dimensions to the full color spectrum: red, green, blue. The most accurate way to portray this spectrum is a 3D cube. This page is 2D, and as such only 2 of the colors may be fully examined at a time, think of it as a cross-section of the cube. Each primary color has 256 possible values (0-255), and with three colors that gives a possibility of 16.8 million colors (256^3). When you choose a color above, the 2 colors that you did not pick are placed on the x and y axis. It is easiest to imagine that the slider now becomes the z-axis of the chosen color, use it to determine which cross-section of the 3d color spectrum cube you want to look at.  Click on the color you are interested in and the hex value is displayed.

I was not familiar with PhotoShop at the time I wrote this (January, 2006), however, it works exactly like their RGB color.

Java Color Picker

Java Dart Score Keeper

December 30, 2011

It's not that the mental math was hard for me in calculating dart scores, but remembering my score from round to round proved to be too much. A good friend and I wrote this score-keeper very quickly to fill that need. It is for any 301-style game (you enter your own point value). Also, since most of us suck at darts too much to actually hit 0 on the head, we implemented a threshold of zero that constitues a win. There is alot of room for improvement (like an UNDO!), but for now it works. 5 players max.

Written January 2006, while I was a Junior in college.

Java Dart Score Keeper

Tags: 
Subscribe to RSS - java