chojuaib

Untitled 100\100

Jan 25th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def grid(x,y,x1,y1,s,t):
  2. xl=(s*(x-x1)-.5)%1-.5
  3. yl=(s*(y-y1)-.5)%1-.5
  4. c1=((xl<t)*(xl>-t)*(1-(xl/t)**4)+(yl<t)*(yl>-t)*(1-(yl/t)**4))
  5. return c1
Add Comment
Please, Sign In to add comment