lugl4313820 发表于 2023-6-1 18:14
哇,大佬的汉字怎么实现的呀,是图片还是做了字库呀。
strokes_lib = {
"小": [
[[0.48, 0.05], [0.48, 0.98]],
[[0.28, 0.96], [0.51, 0.96]],
[[0.76, 0.32], [0.99, 0.78]],
[[0.21, 0.38], [0.02, 0.76]],
],
"星": [
[[0.49, 0.49], [0.49, 1.0]],
[[0.14, 0.08], [0.87, 0.08], [0.85, 0.45]],
[[0.14, 0.25], [0.89, 0.25]],
[[0.14, 0.08], [0.14, 0.435], [0.89, 0.42]],
[[0.13, 0.62], [0.93, 0.62]],
[[0.16, 0.77], [0.89, 0.77]],
[[0.02, 0.97], [1.0, 0.97]],
[[0.22, 0.54], [0.02, 0.74]],
],
}
别的大佬做的字,应该是用线画的,数组里都是线段,有兴趣可以用生字软件生一下点的,这个线的只能说能用