An ASCII text "bounce" animation rendered in the terminal. Implemented in Haskell.
This default version reads data from an INI (initialisation) file to set a default position and velocity for the ball.
Edit the INI file to set the program's starting values
in data/start.ini
.
This version is the simplest implementation. The configuration is hard-coded in the source file, and the animation frames are individually rendered one after the other in the terminal.
This version reads command-line arguments to set the configuration.
# Syntax:
stack run posX posY velX velY
# Example:
stack run 3 4 1 1
# With GHCI:
ghci> :set args 3 4 1 1
ghci> run
Import the module's run
function into app/Main.hs
and call it
in main
. For example:
module Main where
import AnimationV2 ( run )
main :: IO ()
main = run
Build and run the application using Stack. See the requested
GHC resolve in stack.yaml
.
stack build
stack run