fork download
  1. layer = active.proxy.layerByName("0")
  2. d=active.document()
  3. bj=Builder(d)
  4.  
  5. --Circle
  6. for i=0,10,0.1 do
  7. c=Circle(Coord(0,0),100+i,layer)
  8. bj:append(c)
  9. end
  10.  
  11. --function for horizontal lines
  12. function hrz(a,b,c,d,l)
  13. for k=0,l,1
  14. do
  15. h=Line(Coord(a,b+k),Coord(c,d+k),layer)
  16. bj:append(h)
  17. end
  18. end
  19. --function for vertical lines
  20. function add(a,b,c,d,l)
  21. for u=0,l,1
  22. do
  23. m1=Line(Coord(a+u,b),Coord(c+u,d),layer)
  24. bj:append(m1)
  25. end
  26. end
  27.  
  28. --x calling
  29. add(0,0,300,300,50)
  30. add(100,0,400,300,50)
  31. add(360,0,60,300,50)
  32. add(300,0,0,300,50)
  33.  
  34. --circle lines calling
  35. add(-5,-100,-5,-200,10)
  36. add(-5,100,-5,200,10)
  37. hrz(100,-5,200,-5,10)
  38. hrz(-100,-5,-200,-5,10)
  39.  
  40. --m calling
  41. add(650,0,650,300,50)
  42. add(950,0,950,300,50)
  43. add(650,0,800,150,50)
  44. add(800,150,950,0,50)
  45.  
  46. --hyphon
  47. hrz(450,150,550,150,50)
  48.  
  49. --E calling
  50. add(1100,0,1100,300,50)
  51. hrz(1150,0,1300,0,50)
  52. hrz(1150,125,1300,125,50)
  53. hrz(1150,250,1300,250,50)
  54.  
  55. --N calling
  56. add(1400,0,1400,300,50)
  57. add(1400,0,1650,300,50)
  58. add(1650,0,1650,300,50)
  59.  
  60. bj:execute()
  61.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
layer = active.proxy.layerByName("0")
^
1 error
stdout
Standard output is empty