Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

  • Jaguar
    • Action
      • Blur
      • Color
      • Pixelate
      • Preset
    • Color
    • Drawable
      • Border
      • Style
      • Text
    • Exception
    • Factory
    • Format
    • Gradient

Classes

  • AbstractGradient
  • CircleGradient
  • DiamondGradient
  • LinearGradient
  • RectangleGradient

Interfaces

  • GradientInterface

Class LinearGradient

Jaguar\Gradient\AbstractGradient implements Jaguar\Gradient\GradientInterface
Extended by Jaguar\Gradient\LinearGradient
Namespace: Jaguar\Gradient
Located at Jaguar/Gradient/LinearGradient.php

Methods summary

public
# __construct( string $type = Jaguar\Gradient\LinearGradient::GRADIENT_VERTICAL, Jaguar\Color\RGBColor $start = null, Jaguar\Color\RGBColor $end = null, integer $step = 0 )

construct new LinearGradient gradient

construct new LinearGradient gradient

Parameters

$type
string
$type
$start
Jaguar\Color\RGBColor
$start
$end
Jaguar\Color\RGBColor
$end
$step
integer
$step

Throws

InvalidArgumentException

Overrides

Jaguar\Gradient\AbstractGradient::__construct
public
# setType( string $type )

Set LinearGradient type

Set LinearGradient type

Parameters

$type
string
$type

Throws

InvalidArgumentException
public string
# getType( )

Get LinearGradient type

Get LinearGradient type

Returns

string

Methods inherited from Jaguar\Gradient\AbstractGradient

generate(), getEndColor(), getStartColor(), getStep(), setEndColor(), setStartColor(), setStep()

Magic methods summary

Constants summary

string GRADIENT_VERTICAL 'gradient.vertical'
#
string GRADIENT_HORIZONTAL 'gradient.horizontal'
#
Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0