Skip to content

Instantly share code, notes, and snippets.

View Lubba-64's full-sized avatar

Blair Hines Lubba-64

View GitHub Profile
from PIL import Image
size = (1280,1280)
img = Image.new(mode='RGBA',size=size,color=(255,128,255,128))
pixels = img.load()
for x in range(size[0]):
for y in range(size[1]):
@Lubba-64
Lubba-64 / roll.py
Last active July 2, 2022 00:38
Dice roll probability sim
import random
print(
"""
This script simulates this scenario:
you have a die of N faces
you have Y quantity of that die
what is the average of X rolls,
taking the highest value of all
dies for that roll?
/* Vars. */
:root {
--main-color: #ffa494;
--background-color: rgb(0, 0, 0);
}
/* Rounded Edges. */
#app-mount {
border-radius: 20px;
background-color: transparent;
}