Added credit to rgb2hex() author

This commit is contained in:
Sarven Capadisli 2009-07-31 19:31:23 +00:00
parent 80ad02610a
commit 5f3af3e121
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ $(document).ready(function() {
}
}
/* rgb2hex written by R0bb13 <robertorebollo@gmail.com> */
function rgb2hex(rgb) {
rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
function hex(x) {