I wanted to make a door for shogun19 and therefore of course opened my python terminal
import random
import matplotlib.pyplot as plt
alphabets = ['260','2650','1F600']
lengths = [100,50,50]
vals = [int(a,base=16) for a in alphabets]
for v,n in zip(vals,lengths):
for i in range(v,v+n):
x,y = random.random(),random.random()
angle = random.random()*360
plt.text(x, y, chr(i), fontsize=16, rotation=angle)
plt.axis('off')
fig.savefig('door.eps', format='eps')
plt.show()
Now I’d like to continue in this vein until the image is mostly black with characters, then get the remaining white portions as vector output suitable for a laser cutter. I wanna avoid large chunks of the door falling out due to big bordered areas
who knows how to do that? I can save the figure as .eps which is vector.
I guess I import that to inkscape and do the union /inversion there?
Also if anyone knows how to avoid the missing glyphs (‘RuntimeWarning: Glyph 12297 missing from current font.’) , those wind up looking like doors, ironically enough and i can’t seem to catch them with a try-except. Maybe this is what Jim Morrison was trying to warn us about
i guess i can just use few enough chars that i go with the direct output and not union . if i force their laser to go back over the same lines a bunch of times i pay for it.
also If anybody has favorite unicode blocks throw the hex into the list of alphabets