When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| import drawsvg as draw | |
| import math | |
| import random | |
| spacing = 7 | |
| stroke = 0.5 | |
| rows, cols = (200, 200) | |
| arr = [[0]*(cols*2)]*(rows*2) | |
| d = draw.Drawing(450, 450, origin='center') |