Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ccmorataya's full-sized avatar
👶
Happy

Cristian Morataya ccmorataya

👶
Happy
View GitHub Profile
@ccmorataya
ccmorataya / Main.java
Created September 9, 2016 18:28
Sorting method Bubble sort or Quick sort
package com.random.ordering;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
menu();
optionSelect();
}
@ccmorataya
ccmorataya / pillow_remove_magenta.py
Created October 1, 2019 18:46
replace the magenta pixels with transparency
# Original answer in https://stackoverflow.com/a/765774/6189341
from PIL import Image
img = Image.open("area02_level_tiles.png") # CM:: replace area02_level_tiles.png with the name/path of the image to process
img = img.convert("RGBA")
datas = img.getdata()
newData = []
for item in datas: