Re: FUDforum 3.0.0 Released |
Thu, 03 December 2009 13:47 |
|
naudefj wrote on Sun, 08 November 2009 15:40Are you referring to this button: ?
I don't pretend to fully understand the code, but could something like this be used to keep the size of the install file small?
It sounds like an interesting idea if you can just change the colors bits without creating thousands of separate images in different languages.
|
|
Re: FUDforum 3.0.0 Released |
Mon, 09 November 2009 05:27 |
|
naudefj wrote on Mon, 09 November 2009 02:40Are you referring to this button: ?
yes. the face on button was yellow. it will be red if just change blue and green components. here is my gif button after this script:
|
|
|
Adjust buttons by swapping colours |
Sat, 07 November 2009 16:37 |
|
thank you for new version.
also i'm impressed with your new green theme. but looks like buttons colors G<->B swapped bit incorrectly (e.g. "profile" button). i've grabbed your css and wrote simple script to change to green. try, it will not change yellow to red.
#!/usr/bin/php
<?php
if($im = imagecreatefromgif($argv[1])) {
for ($c = 0; $c < imagecolorstotal($im); $c++) {
$col = imagecolorsforindex($im, $c);
if($col['blue'] > $col['green'])
imagecolorset($im, $c, $col['red'], $col['blue'], $col['red']);
}
echo 'image colorized\n.';
imagegif($im, $argv[1]);
imagedestroy($im);
} else
echo 'colorizing failed\n.';
?>
|
|