Skip to main content

canvas_clip

Function canvas_clip 

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

clip(fillRule)。現在のパスでクリップ領域を狭める。

引数にパスを渡す形(clip(path, rule))は Path2D が未実装のため 対応しない。現在のパスを使う形だけを扱う。