This is an old revision of the document!
make gtf0
It is also possible to compile manually
gcc -Wall --std=gnu18 -o gtf0 gtf0.c -lgd
mv gtf0.png ~/public_html
chmod 0644 ~/public_html/gtf0.png
Before anything can be drawn there needs to be a color to draw it in
Colors can be mixed with gdImageColorAllocate
int color = gdImageColorAllocate (gdImagePtr im, int r, int g, int b);
gdImagePtr im is the image the function edits
int r, int g, and int b are the red, green, and blue components of the color. Typically represented as hex values between 0x00 and 0xFF
There are many ways to find a colors hex value, including googles