SHARE
TWEET

script.py

VirtualVoid Jun 20th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. from tools import (
  3.     interpolate,
  4.     make_idft_funs,
  5.     draw,
  6.     DrawContainer,
  7.     plot_complex,
  8.     calculate_limts,
  9. )
  10.  
  11. border = np.array(
  12.     (237 / 4 + 13j, 237 + 13j, 237 + 237j, 13 + 237j, 13 + 13j, 237 / 5 + 13j)
  13. )
  14.  
  15. greater_than = np.array(
  16.     (
  17.         66 + 68j,
  18.         130 + 122j,
  19.         135 + 129j,
  20.         130 + 136j,
  21.         67 + 190j,
  22.         53 + 188j,
  23.         52 + 174j,
  24.         103 + 129j,
  25.         51 + 84j,
  26.         52 + 70j,
  27.         66 + 68j,
  28.     )
  29. )
  30.  
  31. underscore = np.array((125 + 73j, 198 + 73j, 198 + 95j, 125 + 95j, 125 + 73j))
  32.  
  33. limts = calculate_limts(border, greater_than, underscore)
  34.  
  35. border_ifft = make_idft_funs(interpolate(border, 40))
  36. larger_then_ifft = make_idft_funs(interpolate(greater_than, 25))
  37. underscore_ifft = make_idft_funs(interpolate(underscore, 25))
  38.  
  39. container = (
  40.     DrawContainer(border_ifft, "#ee4d2e", "#ee4d2e", "#ee4d2e", []),
  41.     DrawContainer(larger_then_ifft, "#f2f5f4", "#f2f5f4", "#f2f5f4", []),
  42.     DrawContainer(underscore_ifft, "#f2f5f4", "#f2f5f4", "#f2f5f4", []),
  43. )
  44.  
  45. draw(container, limts, backround_color="#161618")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top