Advertisement
KDOXG

background

Oct 19th, 2020
4,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.22 KB | None | 0 0
  1. I = imread ("spritesheet.png");
  2. for i = 1:rows(I)
  3.   for j = 1:columns(I)
  4.     if I(i,j,1) == 0 && I(i,j,2) == 136 && I(i,j,3) == 255
  5.       I(i,j,:) = 0;
  6.     endif
  7.   endfor
  8. endfor
  9. imwrite(I,"spritesheet_w_background.png");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement