utils.py 文件源码

python
阅读 37 收藏 0 点赞 0 评论 0

项目:sand-glyphs 作者: inconvergent 项目源码 文件源码
def _interpolate_write_with_cursive(glyphs, inum, theta, noise, offset_size):
  stack = row_stack(glyphs)
  ig = _rnd_interpolate(stack, len(glyphs)*inum, ordered=True)
  gamma = theta + cumsum((1.0-2.0*random(len(ig)))*noise)
  dd = column_stack((cos(gamma), sin(gamma)))*offset_size
  a = ig + dd
  b = ig + dd[:,::-1]*array((1,-1))

  return a, b
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号