« UI\Draw\Stroke
UI\Draw\Stroke::getCap »

UI\Draw\Stroke::__construct

(UI 0.9.9)

UI\Draw\Stroke::__construct — Construct a new Stroke

説明

public function 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)

関連キーワード:
Draw   Stroke   Line   construct   Join   Construct   Miter   thickness   Flat   join   float   miterLimit   Round   getCap   Square   Bevel   stroke   limit   default   sensible   supported   platforms
関連する関数・ページ:
ui-draw-stroke.getjoin   ui-draw-stroke.setjoin   ui-draw-stroke.getcap   class.ui-draw-stroke   ui-draw-stroke.setcap   ui-draw-stroke.getthickness