[Haskell-cafe] lib for drawing with mouse

Brandon Allbery allbery.b at gmail.com
Tue Mar 3 12:44:59 UTC 2020


gtk2hs is a dead project, gi is its successor. I don't know if it has
similar examples.

On Tue, Mar 3, 2020 at 7:27 AM <mechvel at scico.botik.ru> wrote:

> Thanks to people for help.
>
> So far I have an impression that this one is close to what it is needed:
>
>    a Gtk2Hs library for GUI (graphical user interface),
>
>
>
> https://archives.haskell.org/code.haskell.org/gtk2hs/docs/tutorial/Tutorial_Port/
>
> It has
>     Appendix.  Drawing with Cairo: Getting Started
>
> It reads the mouse movements converting it into a drawing, with saving a
> picture in
> the formats of  pdf, png, svg, ...
>
> But I do not find there the possibility to save this drawing as a
> sequence of the
> coordinate pairs, pairs of numbers in a .txt file.
> It is evident that such a possibility can easily be provided.
>
> I look at its homepage  http://projects.haskell.org/gtk2hs/
>
> and wonder: where is any email address to ask this question about
> obtaining the
> coordinates.
> (?)
>
> Thanks,
>
> ------
> Sergei
>
>
>
> On 2020-03-03 01:45, Branimir Maksimovic wrote:
> > Gtk?
> >
> > On 3/1/20 8:44 PM, mechvel at scico.botik.ru wrote:
> >> Please,
> >>
> >> does there exist a tool (library) in Haskell that supports doing the
> >> following
> >> with graphics?
> >>
> >> (1) To draw a curve by mouse on a screen and save this picture in a
> >> file
> >>     (many different curves to be input this way).
> >> (2) To save in  data.txt  the coordinates of the points of this curve,
> >>     say, 800 pairs of numbers (floating point or rational ...).
> >> (3) Reversely: to draw a curve on a screen by inputting from such
> >> data.txt.
> >>
> >> The main is (1)&(2). Because currently I set a curve by putting many
> >> times the
> >> '*' character and `space' to a text file, and this takes long.
> >>
> >> Thanks,
> >>
> >> ------
> >> Sergei
> >>
> >> _______________________________________________
> >> Haskell-Cafe mailing list
> >> To (un)subscribe, modify options or view archives go to:
> >> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> >> Only members subscribed via the mailman list are allowed to post.
> > _______________________________________________
> > Haskell-Cafe mailing list
> > To (un)subscribe, modify options or view archives go to:
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> > Only members subscribed via the mailman list are allowed to post.
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.



-- 
brandon s allbery kf8nh
allbery.b at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20200303/ad84a022/attachment.html>


More information about the Haskell-Cafe mailing list