! From http://www.ffconsultancy.com/ocaml/maze/index.html
-USING: sequences namespaces math math.vectors opengl opengl.gl
-arrays kernel random ui ui.gadgets ui.gadgets.canvas ui.render
-math.order math.rectangles accessors ;
+USING: accessors arrays fry kernel math math.order math.vectors
+namespaces opengl.gl random sequences ui ui.gadgets
+ui.gadgets.canvas ui.render ;
IN: maze
CONSTANT: line-width 8
line-width 2 - glLineWidth
line-width 2 - glPointSize
1.0 1.0 1.0 1.0 glColor4d
- dup iota [ drop t <array> ] with map visited set
+ dup '[ _ t <array> ] replicate visited set
GL_LINE_STRIP glBegin
{ 0 0 } dup vertex (draw-maze)
glEnd ;