BITS is a multi-function application. It serves both the HTML developer, and the programmer of applications such as C++, Pascal, COBOL, etc. The developer of HTML will find it easy to convert RGB values into HEX values, and then paste the HEX value into the HTML document. Reversing the process is just as simple. Also, the HTML developer can choose a color by clicking on the color swatch area, and allowing BITS to convert the chosen color into HEX. The programmer will enjoy the ability to convert HEX to DECIMAL, and to perform operations on the numeric value. The programmer may click on the check box representing the bits, enter the number directly, or perform operations such as shifting. |
BITS is copyrighted by
John L Collicott My name may not be removed from the application, nor may any of the files associated with BITS be modified in any way without my written approval, except to delete them from you machine or storage medium. BITS may not be sold or distributed as part of any commercial application or package without my written permission. Please refer to the distribution information in this same document. |
The BITS user must agree not to hold me, John L Collicott, responsible for any damage or loss that might result from using BITS, or from any values produced by BITS. If you agree to relieve me from any liability involved in any way with the use of BITS, then you are granted free usage of the application. |
I encourage distribution of BITS. The application is intended to be a freeware program, and as such it may not be sold individually or as part of a package without my written permission. BITS.EXE must be accompanied by this file, BITS.HTML.
I do authorize distribution of BITS from any bulletin board, web or ftp site. This includes shareware distributors, intranet and internet downloads or packaging with other products, as long as there is no charge for BITS or the package it is being distributed with. Exceptions: |
There is no registration fee or cost associated with using BITS. I get a kick out of thinking that my stuff might be used by thousands of people. I would appreciate your signing my guest book at http://www.collicott.net/john/programming/bits.htm. I promise not to harass you, but I might send you a note if I upgrade BITS, and think you might want to know. At the very least, send me e-mail at john@collicott.net. |
Use the pull-down menu to view the about dialog, or to move, minimize or close BITS. |
Each of these check boxes represents a bit in a 32-bit value. Each byte is represented by 8 bits, making 32 bits equivalent to 4 bytes. Each bit may be turned on or off by checking the box. As you do so, the HEX, DECIMAL and RGB values will change. Likewise, if you change the HEX, DECIMAL or RGB value, or perform any operations on the current value the bit check boxes will reflect that change in value. As a side note, don't forget that your machine has a big endian and little endian. If you don't know what that is, it will make a good homework project. Note: If the boxes 25-32 have not been checked, then the HEX value will be 6 digits instead of the possible 8. This was done specifically for those who will use this application for HTML work; making it easier to copy the HEX value into the clipboard. |
The small color swatch in the lower left corner represents the RGB color of the current value. Only 24 bits are relevant for this purpose, so don't be surprised if nothing changes if you check the bits 25-32. Clicking on the swatch will open a color pick dialog. Choose any color and select OK, to use the color in BITS. The RGB value and the HEX value will be immediately reflected. As a new feature, BITS now retains the last RGB value between uses. This makes it nice if you forgot or lost the value that you spent time getting just right. |
Enter the red value of the RGB color here. After entering all three values, click on the rgb button to update the color swatch and HEX display. Changes made anywhere else within BITS may be reflected in a new value in this field. |
Enter the green value of the RGB color here. After entering all three values, click on the rgb button to update the color swatch and HEX display. Changes made anywhere else within BITS may be reflected in a new value in this field. |
Enter the blue value of the RGB color here. After entering all three values, click on the rgb button to update the color swatch and HEX display. Changes made anywhere else within BITS may be reflected in a new value in this field. |
After entering all three values (red,green,blue), click on the rgb button to update the color swatch and HEX display. |
Enter a hexadecimal value to convert into this field. Press the Hex button to convert.
Note: I do not perform much error checking, so if you put in a value that is not a hexadecimal (base 16) value, don't blame me for undefined conversion values being displayed. |
Press this button to convert the value in the Hex Entry Box into RGB and decimal, and to see the bit representation in the check boxes. |
Enter a decimal value to convert into this field. Press the Dec button to convert.
Note: I do not perform much error checking, so if you put in a value that is not a decimal (base 10) value, don't blame me for undefined conversion values being displayed. |
Press this button to convert the value in the Decimal Entry Box into RGB and hexadecimal, and to see the bit representation in the check boxes. |
Pressing this button will turn on all of the bit check boxes and reflect that value in all other fields. |
Pressing this button will turn off all of the bit check boxes and reflect that value in all other fields. |
Pressing this button will shift values one bit to the left, and reflect that value in all other fields. |
Pressing this button will shift values one bit to the right, and reflect that value in all other fields. |
The NOT button reverses the current value of each bit, and reflects that value in all other fields. |
The AND button uses the value in the Number Entry field to modify the value of the currently checked bit boxes, and reflects that value in all other fields. In situations where the current value and the value in Number Entry both have bits turned on, the check boxes are on. All other boxes are turned off. |
The OR button uses the value in the Number Entry field to modify the value of the currently checked bit boxes, and reflects that value in all other fields. In situations where either the current value or the value in Number Entry have bits turned on, the check boxes are on. All other boxes are turned off. |
The XOR button uses the value in the Number Entry field to modify the value of the currently checked bit boxes, and reflects that value in all other fields. Only the bits shared by both the current value and the value in Number Entry are affected. If only one value has bits turned on, then the result is on. If both have bits turned on, then the result is off. All other boxes are not affected. |
Put a decimal or hexadecimal (prefix hex with 0x) into this field for use with the AND, OR and XOR buttons.
Note: I do not perform much error checking, so if you put in a value that is not a hexadecimal (base 16) or decimal (base 10) value, don't blame me for undefined conversion values being displayed. |