fork download
  1. # Generate and display the Mandelbrot set
  2.  
  3. BEGIN {
  4. # Constants to determine size and coordinates of grid
  5. width = 150; height = 50
  6. min_x = -2.1; max_x = 0.6
  7. min_y = -1.2; max_y = 1.2
  8. iters = 32
  9.  
  10. # "Colors", from '.' (diverges fastest) to '@' (diverges slowly),
  11. # and then ' ' for doesn't diverge within `iters` iterations.
  12. colors[0] = "."
  13. colors[1] = "-"
  14. colors[2] = "+"
  15. colors[3] = "*"
  16. colors[4] = "%%"
  17. colors[5] = "#"
  18. colors[6] = "$"
  19. colors[7] = "@"
  20. colors[8] = " "
  21.  
  22. name = 12;
  23. name = "ASh";
  24. }
Success #stdin #stdout 0s 4512KB
stdin
Standard input is empty
stdout
Standard output is empty