image-part ( image x y w h -- image )


Vocabulary
snake-game.sprites

Inputs
imagean object
xan object
yan object
wan object
han object


Outputs
imagean object


Definition


:: image-part ( image x y w h -- image )
image w h new-image-like :> new-image h <iota> [| i |
new-image bitmap>> x y i + w image pixel-row-slice-at
append! drop
] each new-image ;