PHP - Manual: UI\Draw\Stroke::__construct
2024-12-21
(UI 0.9.9)
UI\Draw\Stroke::__construct — Construct a new Stroke
$cap
= UI\Draw\Line\Cap::Flat,$join
= UI\Draw\Line\Join::Miter,$thickness
= 1,$miterLimit
= 10Shall 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)
官方地址:https://www.php.net/manual/en/ui-draw-stroke.construct.php