<div dir="ltr">gtk2hs is a dead project, gi is its successor. I don't know if it has similar examples.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 3, 2020 at 7:27 AM <<a href="mailto:mechvel@scico.botik.ru">mechvel@scico.botik.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks to people for help.<br>
<br>
So far I have an impression that this one is close to what it is needed:<br>
<br>
   a Gtk2Hs library for GUI (graphical user interface),<br>
<br>
<br>
<a href="https://archives.haskell.org/code.haskell.org/gtk2hs/docs/tutorial/Tutorial_Port/" rel="noreferrer" target="_blank">https://archives.haskell.org/code.haskell.org/gtk2hs/docs/tutorial/Tutorial_Port/</a><br>
<br>
It has<br>
    Appendix.  Drawing with Cairo: Getting Started<br>
<br>
It reads the mouse movements converting it into a drawing, with saving a <br>
picture in<br>
the formats of  pdf, png, svg, ...<br>
<br>
But I do not find there the possibility to save this drawing as a <br>
sequence of the<br>
coordinate pairs, pairs of numbers in a .txt file.<br>
It is evident that such a possibility can easily be provided.<br>
<br>
I look at its homepage  <a href="http://projects.haskell.org/gtk2hs/" rel="noreferrer" target="_blank">http://projects.haskell.org/gtk2hs/</a><br>
<br>
and wonder: where is any email address to ask this question about <br>
obtaining the<br>
coordinates.<br>
(?)<br>
<br>
Thanks,<br>
<br>
------<br>
Sergei<br>
<br>
<br>
<br>
On 2020-03-03 01:45, Branimir Maksimovic wrote:<br>
> Gtk?<br>
> <br>
> On 3/1/20 8:44 PM, <a href="mailto:mechvel@scico.botik.ru" target="_blank">mechvel@scico.botik.ru</a> wrote:<br>
>> Please,<br>
>> <br>
>> does there exist a tool (library) in Haskell that supports doing the <br>
>> following<br>
>> with graphics?<br>
>> <br>
>> (1) To draw a curve by mouse on a screen and save this picture in a <br>
>> file<br>
>>     (many different curves to be input this way).<br>
>> (2) To save in  data.txt  the coordinates of the points of this curve,<br>
>>     say, 800 pairs of numbers (floating point or rational ...).<br>
>> (3) Reversely: to draw a curve on a screen by inputting from such <br>
>> data.txt.<br>
>> <br>
>> The main is (1)&(2). Because currently I set a curve by putting many <br>
>> times the<br>
>> '*' character and `space' to a text file, and this takes long.<br>
>> <br>
>> Thanks,<br>
>> <br>
>> ------<br>
>> Sergei<br>
>> <br>
>> _______________________________________________<br>
>> Haskell-Cafe mailing list<br>
>> To (un)subscribe, modify options or view archives go to:<br>
>> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
>> Only members subscribed via the mailman list are allowed to post.<br>
> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> To (un)subscribe, modify options or view archives go to:<br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
> Only members subscribed via the mailman list are allowed to post.<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>