Generator::fileurl()

Method: Return url to avatar.

Generator::generate()

Method: Function to generate letter avatar

Generator::hex_to_rgb()

Method: Convert hex value to rgb.

Generator::image_center()

Method: Get center position on image.

Generator::image_gradientrect()

Method: Fill gradient.

Generator::color_luminance()

Method: Lightens/darkens a given colour (hex format), returning the altered colour in hex format.

ap_is_avatar_exists()

Function: Check if avatar exists already.

ap_generate_avatar()

Function: Generate avatar.

Avatar

Class: AnsPress avatar hook class.

Avatar::__construct()

Method: Initialize the class.