logo

Safe HaskellNone
LanguageHaskell2010

HelperFunctions

Synopsis

Documentation

moveForward

Arguments

:: Double

Distance to travel

-> Render () 

The moveForward function moves the logo in forward direction. It takes one argument of type Double.

moveBackward

Arguments

:: Double

Distance to travel

-> Render () 

The moveBackward function moves the logo in backward direction. It takes one argument of type Double.

turnRight

Arguments

:: Double

Angle

-> Render () 

The turnRight function rotates the logo in clockwise direction. It takes one argument of type Double.

turnLeft

Arguments

:: Double

Angle

-> Render () 

The turnLeft function rotates the logo in anticlockwise direction. It takes one argument of type Double.

tree

Arguments

:: Double

Size of the tree

-> Render () 

The tree function draws a tree of size provided It takes one argument of type Double.

clearScreen :: Render ()

The clearScreen function clears the screen