略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CairoRadialGradient::__construct

2024-12-23

CairoRadialGradient::__construct

(PECL cairo >= 0.1.0)

CairoRadialGradient::__constructThe __construct purpose

说明

面向对象风格:

public CairoRadialGradient::__construct ( float $x0 , float $y0 , float $r0 , float $x1 , float $y1 , float $r1 )

过程化风格:

Creates a new radial gradient CairoPattern between the two circles defined by (x0, y0, r0) and (x1, y1, r1). Before using the gradient pattern, a number of color stops should be defined using CairoRadialGradient::addColorStopRgb() or CairoRadialGradient::addColorStopRgba().

Note: The coordinates here are in pattern space. For a new pattern, pattern space is identical to user space, but the relationship between the spaces can be changed with CairoRadialGradient::setMatrix().

参数

x0

x coordinate for the center of the start circle.

y0

y coordinate for the center of the start circle.

r0

radius of the start circle.

x1

x coordinate for the center of the end circle.

y1

y coordinate for the center of the end circle.

r1

radius of the end circle.

返回值

Description...

范例

Example #1 CairoRadialGradient::__construct() example

<?php
/* ... */
?>

以上例程的输出类似于:

...

参见

  • Classname::Method()
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/cairoradialgradient.construct.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3