Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arrow Project

Image Generating

function rotate_inplace_cropped(img, angle_degrees, bg_color=RGB(0, 0, 0))
    center = [mean(axes(img, 1)), mean(axes(img, 2))]

    θ = deg2rad(angle_degrees)
    tfm = Translation(center...)  LinearMap(RotMatrix(θ))  Translation((-center)...)

    img_rotated = warp(img, tfm, axes(img), fillvalue=bg_color)

    return img_rotated
end

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages