Skip to content

Instantly share code, notes, and snippets.

👶
Happy

Cristian Morataya ccmorataya

👶
Happy
Block or report user

Report or block ccmorataya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ccmorataya
ccmorataya / pillow_remove_magenta.py
Created Oct 1, 2019
replace the magenta pixels with transparency
View pillow_remove_magenta.py
# 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:
@ccmorataya
ccmorataya / Main.java
Created Sep 9, 2016
Sorting method Bubble sort or Quick sort
View Main.java
package com.random.ordering;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
menu();
optionSelect();
}
You can’t perform that action at this time.