End of Summer Fun with FunSharp
With summer coming to an end it's not too early to start queuing up projects for the kids, young and old, for Thanksgiving and Winter break. :)
Phillip Trelford recently released a cool new library that is meant to help speed and simplify creating graphic apps and games. a library that is just trying to make it fun...
Drawing graphics is quick and easy:GraphicsWindow.FillEllipse(10,10,300,300)
And when you ask FunSharp to draw graphics it will just go and open a window to view it for you:
You can call FunSharp immediately from the F# REPL or build full-blown applications using F# and C#.
It’s an ideal library for beginners or anyone who just wants to get stuff on the screen quickly.
With this in mind FunSharp works seamlessly on Raspberry Pi, Linux and Windows.
If you haven’t already, you’ll need to install F# on your machine, follow these instructions:
- Linux (for Raspbian follow the Debian instructions)
- Windows (install Xamarin Studio or Visual Studio)
Get the FunSharp source from GitHub using Clone or Download Zip, then load the FunSharp solution into MonoDevelop or Visual Studio and starting playing with the samples.
- FunSharp is built on Mono’s cross platform graphics libraries Xwt and Gtk# libraries which must be referenced.
- currently apps must run in 32-bit mode.
FunSharp has a Turtle module, which can be used to make fun shapes:
FunSharp can be used to make games quickly and easily. I’ve ported several games written for Small Basic requiring only minor modifications:
Fun cross-platform graphics library, based on Small Basic's library, made specifically for F# and C#.
FunSharp runs on Raspbian, Linux and Windows.