Window creation/X11: Difference between revisions

Content added Content deleted
({{omit from|Lotus 123 Macro Scripting}})
Line 254: Line 254:


[[file:Go-x11.png]]
[[file:Go-x11.png]]

=={{header|Icon}} and {{header|Unicon}}==
Icon and Unicon provide a portable graphics implementation that does not rely upon a toolkit. The intent is to be platform independent and the same code runs on multiple platforms without change and producing results with only minor variations. Icon and Unicon graphics are implemented in X-Windows as well as MS-Windows and others. There are additional 3D graphics capabilities implemented using opengl.
<lang Icon>procedure main()
W1 := open("X-Window","g","size=250,250","bg=black","fg=red") | stop("unable to open window")
FillRectangle(W1,50,50,150,150)
WDone(W1)
end

link graphics</lang>

{{libheader|Icon Programming Library}}
[http://www.cs.arizona.edu/icon/library/src/procs/graphics.icn graphics.icn provides graphics]

Additionally, the '''WOpen''' procedure and Window.App methods are available.


=={{header|Haskell}}==
=={{header|Haskell}}==