« first day (4385 days earlier)      last day (855 days later) » 

04:36
@Ginger I'll give it a go
But I can always just make 4 different types of each number if need be
05:02
from PIL import Image
import numpy as np

orig_color = (255, 0, 255)
replacement_color = (0, 0, 255)
filename = "<filename>"
img = Image.open(filename).convert("RGB")
data = np.array(img)
data[(data == orig_color).all(axis=-1)] = replacement_color
img2 = Image.fromarray(data, mode="RGB")
img2.show()
20
A: PIL Best Way To Replace Color?

unutbuUsing numpy and PIL: This loads the image into a numpy array of shape (W,H,3), where W is the width and H is the height. The third axis of the array represents the 3 color channels, R,G,B. import Image import numpy as np orig_color = (255,255,255) replacement_color = (0,0,0) img = Image.open(...

 
6 hours later…
10:41
@lyxal I tried this already but it doesn't want to work
can you do the 4 different types?
@Ginger worked for me
damn shame I'm not using your machine
Guess I'll do the 4 colours then
thanks
how's that for the 0 card?
also what should I be naming these files?
red0.png or red/0.png?
@Ginger ^
10:49
name-number.png
spice
I'm basically choosing the funniest 3d model I can for each number
@Ginger what do you think of the new 6 and 9s?
11:09
make the smaller number less obvious and then it's good I think
you mean the ones in the corners?
11:26
no, the dashed one
gosh hecking dang it
the 6 in the 9 card will have to stay the same as it is
11:40
@Ginger the new coloured cards are in the repo now
thanks!
file names are colour-name.png except for wild and draw 4

« first day (4385 days earlier)      last day (855 days later) »