Skip to main content

canvas_stroke_text

Function canvas_stroke_text 

Source
pub fn canvas_stroke_text(
    _it: &mut Interp,
    this: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

fillText(text, x, y)。

strokeText も同じ処理へ回す。線でなぞる形は未対応で、 塗りで代用する(何も描かないよりは近い)。 strokeText(text, x, y)。

strokeStyle と lineWidth を反映して輪郭線を描く。