I'm a first year Computer Science Student in my first semester of Haskell. We have recently been doing a lot of work with Code World (a package used for drawing pictures in Haskell) and I was wondered we can port Bad Apple!! onto Haskell using Code World.
My current plan of attack is to use some software that converts a single frame into a list of co-ordinates and use polyline
from Code World to create a polygon around these points. I would then use the TimePassing
event to display this image for a very short period of time before I move on to the next frame.
This is probably the most naive way to approach this problem and it probably has been done before and there are certainly mechanisms in Haskell that I do not know that may make this problem far simpler (and the code much faster), but its simply I want to tackle myself and see what happens.
To that extent, I have a few question just for some assistance in implementing this.
- What software can I use to convert an image into a list of co-ordinates?
- Is there some functionality in Haskell I should research or look into to help me develop this?
- I believe following the method above will make the images extremely slow, is it worth approaching this problem using Code World or is there another package I should look into?
Any help would be appreciated, thank you.
I should state I have not actually attempted to solve this yet. This is likely a problem I will start working on in a week or so, but I would just like some direction when I do.
CodeWorld link: https://hackage.haskell.org/package/codeworld-api-0.8.0/docs/CodeWorld.html#g:4