Here a short summary wich functions are available.
-- Signature Class Constructor
First thing to call to make a signature.
Signature($user, $background, $timezone, $png, $debug, $rsstype)
$user Username for reading the rss data from MAL
$background The name of the imagefile wich is located in the /img/ folder.
$timezone (optional) The timezone of the user, this one is counted in GMT. Default is 0.
$png (optional) Should be set to true if the image is PNG. Default is false.
$debug (optional) Sets your signature into debug modus. The timecaching will be ignored and the signature always updated on refresh. Default is false.
$rsstype (optional) Whenever you like to load a different type of rssfeed. Default is "rw"(recent watching).
Other posible strings: "rwe"(recent watching each), "rm"(recent manga), "rrm"(recent manga each).
-- setRule function
Allows the user to make a rule about how the text should look like.
It should be stored in a variable so it can be used on the write-functions.
setRule($font, $size, $color, $bgcolor, $xoffset, $yoffset, $uppercase, $glow)
$font Name of the fontfile wich is located in the /font/ folder.
$size The fontsize. Depending in freetype lib this will be rendered in points or in pixel.
$color The fontcolor. This must be an Array of red, green and blue color in a range of 0 to 255.
$bgcolor (optional) The color of the shadow or glow effect behind your text. Also an array of red, green and blue color in a range of 0 to 255.
Default is false (no effect color).
$xoffset (optional) The x offset of your text effect wich can be given with a number. Default is false.
$yoffset (optional) The y offset of your text effect wich can be given with a number. Dafault is false.
$uppercase (optional) A boolean to set your text to uppercase. Default is false.
$glow (optional) To set the glow effect properties. This must be an Array where the following properties are set:
'scale' => number;
'strength' => number;
Default is false wich means no glow effect applied.
-- setTimeFormat function
Sets a custom timeformat on the writeTime() function.
setTimeformat($format)
$format Sets the timeformat from a String wich is build like the String for the date() function.
-- writeText
To write text on the signature from a string.
writeText($Text,$x,$y,$rule,$rotation,$align)
$text The text string wich should be written.
$x X position of the text.
$y Y position of the text.
$rule The rule that should be applied on the text made with setRule().
$rotation (optional) Rotation of the text. Default is 0.
$align (optional) The align of the text. can be set to "l" (left), "c" (center) and "r" (right). Default is "l".
-- writeTitle
To write the title of the seen anime on the signature from a string.
writeTitle($nr,$x,$y,$rule,$rotation,$length,$align)
$nr The nr of the rssitem wich should be put out. 1 is the last update, 2 is the second last update etc.
$x X position of the text.
$y Y position of the text.
$rule The rule that should be applied on the text made with setRule().
$rotation (optional) Rotation of the text. Default is 0.
$lenght (optional) The amount of characters wich should be output. default is 45
$align (optional) The align of the text. can be set to "l" (left), "c" (center) and "r" (right). Default is "l".
-- writeDescription
To write the description of the seen anime on the signature from a string.
writeDescription($nr,$x,$y,$rule,$rotation,$length,$align)
$nr The nr of the rssitem wich should be put out. 1 is the last update, 2 is the second last update etc.
$x X position of the text.
$y Y position of the text.
$rule The rule that should be applied on the text made with setRule().
$rotation (optional) Rotation of the text. Default is 0.
$lenght (optional) The amount of characters wich should be output. default is 45
$align (optional) The align of the text. can be set to "l" (left), "c" (center) and "r" (right). Default is "l".
-- writeTime
To write the time of the seen anime on the signature from a string.
writeTime($nr,$x,$y,$rule,$rotation,$align)
$nr The nr of the rssitem wich should be put out. 1 is the last update, 2 is the second last update etc.
$x X position of the text.
$y Y position of the text.
$rule The rule that should be applied on the text made with setRule().
$rotation (optional) Rotation of the text. Default is 0.
$align (optional) The align of the text. can be set to "l" (left), "c" (center) and "r" (right). Default is "l".
-- addThumb function
This functions allows the user to load and add a thumbnail of an current seen anime and add it to the signature.
Those thumbnail images are loaded once from MyAnimeList.net and stored in the /img/thumbs/ folder.
addThumb($nr, $x, $y)
$nr The nr of the rssitem wich should be put out. 1 is the last update, 2 is the second last update etc.
$x X position of the thumbnail on the signature.
$y Y position of the thumbnail on the signature.
-- getAnimeId function
Returns the MyAnimeList.net ID of an anime.
getAnimeId($nr)
$nr The nr of the rssitem wich should be put out. 1 is the last update, 2 is the second last update etc.
-- addImage function
Allows the user to add an image to the signature as a new layer.
addImage($file, $x, $y, $png)
$file The image file located in the /img/ folder wich should be loaded.
$x The x position of the loaded image.
$y The y position of the loaded image.
$png A boolean to set if the image is PNG. Default is false.
-- showSignature function
Last command to render the signature and send the header to output.
showSignature() :Void