benl23x5 / gloss Goto Github PK
View Code? Open in Web Editor NEWPainless 2D vector graphics, animations and simulations.
Home Page: http://gloss.ouroborus.net/
Painless 2D vector graphics, animations and simulations.
Home Page: http://gloss.ouroborus.net/
Holding a modifier key often also changes the character Gloss reports.
Say that I want to perform a certain operation when the L key is pressed, and thus pattern match on EventKey (Char 'l') Down _ _
. If I then desire a slight modification in behaviour when the Shift key is pressed, I find that this branch isn't hit at all, since the character is L
rather than l
.
This behaviour is easy enough to work around, but can be quite annoying, and is fundamentally non-compositional. It would be great if there were an option to always report the same character as when no modifiers are held.
Hello! I've recently started figuring out gloss and was working on a project in xmonad. A couple days ago I switched over to swaywm to check it out, however I got an error ( freeglut (gloss-stuff): failed to open display ''
) whenever I tried to do stack run
. Going back to xmonad it runs just fine, same for xfce. Has anyone else encountered this? I'm willing to try another wayland-based de and see if this problem is swaywm-specific or wayland-broad.
Looks like gloss-examples has a dependency on repa which cannot be built with newer versions of base (following the project website's instructions and using cabal).
Here is the issue: haskell-repa/repa#26
There is a PR open for repa to address this: haskell-repa/repa#27
GLFW repeatedly sends GLFW.KeyState'Repeating when button is held down - https://www.glfw.org/docs/3.3/input_guide.html#input_key.
It gets mapped to Up here:
GLFW.KeyState'Repeating should be just ignored and mapping should be GLFW.KeyState'Pressed to Down and GLFW.KeyState'Released to UP
I want to use gloss
with ghci
(either stack repl
or cabal repl
. The gloss
window opens nicely but when I close it, it also closes ghci
. In an old but report I saw that the gloss
window can be closed with ESC which returns control then to ghci
. When I try this I get:
<interactive>: interrupted
<interactive>: warning: too many hs_exit()s
and ghci
is closed.
I saw some discussion about running gloss
with some flags (??), but could not find a comprehesible and likely up-to-date instruction. What is the correct procedure to run gloss
graphics in ghci
and how to interact with the windows (especially how to close them without closing ghci
?
Thank you!
I work with ghc 8.10.7 and gloss 1.13.2.1 (lts-18.28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.