Overview

Classes

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

Class CardRegular

The background card of the original osu!nextsig design.

Card
Extended by CardRegular
Author: Lemmmy
See: Card
Located at CardRegular.php
Methods summary
public
# drawBackground( string $hexColour )

Draws the background colour with triangles for the signature

Draws the background colour with triangles for the signature

Parameters

$hexColour
Hexadecimal colour value for the whole card
public
# drawBackgroundFill( Imagick $base, string $hexColour )

Draws the background's fill for the signature

Draws the background's fill for the signature

Parameters

$base
The base to draw on
$hexColour
Hexadecimal colour value for the whole card
public
# drawTriangleStrip( string $hexColour )

Draws the triangle strip for the signature

Draws the triangle strip for the signature

Parameters

$hexColour
Hexadecimal colour value for the whole card
public
# drawShadow( $hexColour )

Draws the shadow of the card

Draws the shadow of the card

public
# drawPlainArea( )

Draws the white area of the card

Draws the white area of the card

public
# drawFinalStroke( string $hexColour )

Draws the stroke over the whole card

Draws the stroke over the whole card

Parameters

$hexColour
[Hexadecimal colour value for the card stroke]
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

Overrides

Card::draw()
Methods inherited from Card
__construct()
Constants summary
integer SIG_MARGIN

The margin of the entire signature card

The margin of the entire signature card

# 3
integer SIG_STROKE_WIDTH

The outer stroke width of the signature card

The outer stroke width of the signature card

# 2
integer SIG_INNER_PADDING

The inner padding of the signature card

The inner padding of the signature card

# 6
integer SIG_ROUNDING

How much to round the edges of the signature card

How much to round the edges of the signature card

# 3
integer SIG_OUTER_ROUNDING

How much to round the outer edges of the signature card

How much to round the outer edges of the signature card

# 3
integer TRIANGLE_STRIP_HEIGHT

How large the triangle strip should be

How large the triangle strip should be

# 28
string IMG_TRIANGLES

The triangles image to use for the signature card's header

The triangles image to use for the signature card's header

# "img/triangles_all.png"
Properties inherited from Card
$baseHeight, $baseWidth, $canvas, $user
API documentation generated by ApiGen