PHP 8.4.2 Released!

UI\Draw\Stroke::__construct

(UI 0.9.9)

UI\Draw\Stroke::__constructConstruct a new Stroke

说明

public UI\Draw\Stroke::__construct(
    int $cap = UI\Draw\Line\Cap::Flat,
    int $join = UI\Draw\Line\Join::Miter,
    float $thickness = 1,
    float $miterLimit = 10
)

Shall construct a new Stroke

参数

cap

UI\Draw\Line\Cap::Flat, UI\Draw\Line\Cap::Round, or UI\Draw\Line\Cap::Square

join

UI\Draw\Line\Join::Miter, UI\Draw\Line\Join::Round, or UI\Draw\Line\Join::Bevel

thickness

The thickness of the stroke

miterLimit

Miter limit (default is sensible for all supported platforms)

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top