Skip to content

Instantly share code, notes, and snippets.

View BilHim's full-sized avatar

Bilal Himite BilHim

View GitHub Profile
@BilHim
BilHim / minecraft.py
Last active May 18, 2020 04:06
Replicating Minecraft terrain generation using noise #1
from PIL import Image
width = 512
height = 512
# Magic happens here
def getColor(x, y):
return (0, 0, 0)
# Create an image and load pixels
@BilHim
BilHim / minecraft.py
Last active May 18, 2020 04:08
Replicating Minecraft terrain generation #2
def getColor(x, y):
return (random.randint(0, 1) ,)*3