
You first need to transload this txt file
class.txt
to your account and after it`s been transloaded change it`s name to
class.php
Once you`ve change the name of the above script to
class.php you never do anything to it again.It`s a script that talks to your server and conveys all of the info in the below script to your server.The below script must be placed in the same directory as the above script.
The script in the textarea is the script that makes the gradlines.All you do is cc&p that script and place it within a
.php file.
Within that script you would change these 3 lines in order to change the gradline color.
$gradient->addcolor(0x00,0x00,0x00,0);
$gradient->addcolor(255, 250, 250,50);
$gradient->addcolor(0x00,0x00,0x00,100);
I`ve used both
hex numbers and
RGB numbers to represent the colors I used to make this gradline
Silver gradline
In this first line I`m using the color black,when you use hex numbers you always use
0x in front of each set of 2 numbers/letters and a comma between each set.
In the second line I`m using
RGB numbers which I`ve seperated each set of 3 numbers with a comma.
The last line I`ve used the color black again.
At the end of those 3 lines you`ll see
0,50 &100Those 3 numbers represent the percentage of each color which makes up the width of the gradline.Play around with that last number in each color line and see what results you come up with,I`ve gotten some cool looking gradlines by changing that number.
The other line that you would change within this script is this one
$display = $gradient->buildgradient(400,5);
The number
400 is the
width of the line and the
5 is the
height of the line.Change those 2 numbers to something like 30,100 and see the nice grad column that you`ve made.
grad column
At this point you`re probably wondering how this script
line.txt actually becomes a jpg,well that`s done by clicking onto the
line.php file,grabbing it`s url and then beaming that file back into your account and during the beaming you change the name of the file from
line.php to
line.jpg
It doesn`t work to just rename the
line.php to
line.jpg within your file manager,it must be beamed back into your directory and the extension must be changed during the beaming.
Now that you`ve made a
.jpg you can use the
line.php script to make as many more gradlines or columns that you want.
For more info on this php script check out Sally`s GD
Tutorial #9, she does a better job of explaining this script along with showing what changing the percentage numbers,colors,width & height within this script can create.
Sally`s GD Tutes
and check out my gradcircle tute
Gradcircles
tute by nquale©2005