Skip to main content

round_clip_inset

Function round_clip_inset 

Source
pub fn round_clip_inset(y: i32, top: i32, bottom: i32, r: i32) -> i32
Expand description

角丸の切り取り(半径 r、矩形の上端 top・下端 bottom(含まない))で、行 y の左右から 削る横幅。角の行でなければ 0。円弧の内側に画素の中心があれば残す。

【2026-10-03】overflow:hidden; border-radius:15px の箱(sugi-lab.net のギャラリー)の中身が 四角いまま描かれていた。はみ出しの切り取りは矩形だけだった。