Advertisement
rsidwell

catseye.ufm

Aug 11th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Catseye{
  2. ;
  3. ; Attempt to code the Catseye formula from XaoS.
  4. ; The XaoS source credits Arpad Fekete
  5. ;
  6. init:
  7. z = @start
  8. c = #pixel
  9. loop:
  10. z = c/z + z/c
  11. bailout:
  12. |z| <= @bailout
  13. default:
  14. title = "Catseye"
  15.  
  16. param start
  17. caption = "Starting point"
  18. default = (0.0, -1.0)
  19. endparam
  20.  
  21. float param bailout
  22. caption = "Bailout"
  23. default = 8.0
  24. endparam
  25.  
  26. switch:
  27. type = "CatseyeJulia"
  28. seed = #pixel
  29. bailout = bailout
  30. }
  31.  
  32. CatseyeJulia{
  33. init:
  34. z = #pixel
  35. c = @seed
  36. loop:
  37. z = c/z + z/c
  38. bailout:
  39. |z| <= @bailout
  40. default:
  41. title = "Catseye Julia"
  42.  
  43. param seed
  44. caption = "Julia seed"
  45. default = (0.0,-1.0)
  46. endparam
  47.  
  48. float param bailout
  49. caption = "Bailout"
  50. default = 8.0
  51. endparam
  52.  
  53. switch:
  54. type = "Catseye"
  55. bailout = bailout
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement