Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Background is the background image Background draw.Image // FontFace is the font used to draw text FontFace font.Face )
Functions ¶
func GenerateBackground ¶
func GenerateBackground()
GenerateBackground generates the background image.
Types ¶
type ImageColors ¶
type ImageColors struct {
Bg color.Color
Profile color.Color
Banner color.Color
Line color.Color
Text color.Color
}
ImageColors is the image background Colors
type UserPresence ¶
UserPresence represents the presence. It's used to build the presence image
func New ¶
func New(p *gateway.PresenceUpdateEvent) *UserPresence
New returns a new UserPresence object.
func (*UserPresence) DrawApp ¶
func (u *UserPresence) DrawApp()
DrawApp draws the first app of the user It's the custom status if set, if not,the app name
func (*UserPresence) DrawProfileImage ¶
func (u *UserPresence) DrawProfileImage()
DrawProfileImage draws the profile image
func (*UserPresence) DrawStatus ¶
func (u *UserPresence) DrawStatus()
DrawStatus draws the status of the user It's the dot thing on the left
func (*UserPresence) DrawUsername ¶
func (u *UserPresence) DrawUsername()
DrawUsername draws the username of the person
Click to show internal directories.
Click to hide internal directories.