Overview

Classes

  • Card
  • CardRegular
  • Component
  • ComponentAvatar
  • ComponentFlag
  • ComponentImage
  • ComponentLabel
  • ComponentXPBar
  • ErrorImage
  • OsuAPI
  • OsuSignature
  • PredefinedColours
  • Signature
  • Template
  • TemplateNormal
  • Utils
  • Overview
  • Class

Class Card

The background of each template - these are reusable. These are instantiated in a Template's constructor and are drawn prior to the components.

Direct known subclasses

CardRegular
Author: Lemmmy
Located at Card.php
Methods summary
public
# __construct( $user )
public
# draw( $canvas, $hexColour, $template, $baseWidth, $baseHeight )

Draw the background to the canvas.

Draw the background to the canvas.

Parameters

$canvas
The canvas to draw to
$hexColour
Hexadecimal colour value
$template
The template we're drawing the card for
$baseWidth
The calculated width of the components
$baseHeight
The calculated height of the components
Properties summary
protected array $user

The user of the signature.

The user of the signature.

#
protected Imagick $canvas

The Imagick object for the canvas.

The Imagick object for the canvas.

#
protected integer $baseWidth

The width of the signature excluding the margin and stroke width calculated by the size of all components.

The width of the signature excluding the margin and stroke width calculated by the size of all components.

#
protected integer $baseHeight

The height of the signature excluding the margin and stroke width calculated by the size of all components.

The height of the signature excluding the margin and stroke width calculated by the size of all components.

#
API documentation generated by ApiGen