Class CardRegular
The background card of the original osu!nextsig design.
-
Card
-
CardRegular
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
|
Constants summary
integer |
SIG_MARGIN
The margin of the entire signature card
The margin of the entire signature card
|
|
integer |
SIG_STROKE_WIDTH
The outer stroke width of the signature card
The outer stroke width of the signature card
|
|
integer |
SIG_INNER_PADDING
The inner padding of the signature card
The inner padding of the signature card
|
|
integer |
SIG_ROUNDING
How much to round the edges of the signature card
How much to round the edges of the signature card
|
|
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
|
|
integer |
TRIANGLE_STRIP_HEIGHT
How large the triangle strip should be
How large the triangle strip should be
|
|
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"
|