Skip to main content

draw_rotated_rect_filled

Function draw_rotated_rect_filled 

Source
pub fn draw_rotated_rect_filled(
    screen: &Screen,
    cx: i32,
    cy: i32,
    w: i32,
    h: i32,
    angle_deg: f32,
    color: u32,
)
Expand description

CSS transform: rotate(Ndeg) 向け — 回転した塗りつぶし矩形を描く。 cx/cy は回転中心(スクリーン座標)、w/h は元の矩形サイズ、angle_deg は時計回り度数。