Skip to content

paulhibbert/bees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bees

Simple animated canvas with bees moving about on a honeycomb

Many years ago I was playing with canvas and animation and wrote a loop with balls bouncing in a fixed 800x600 canvas.

I was sitting in a room with a wall hanging in it made by local school children which had a small section with a couple of bees on top of a honeycomb, and I suddenly thought it would be fun to rewrite this old code using some more modern javascript.

The bees start off in the middle and move randomly, but if they tend to stray over the edge of the canvas they will return to it instead. If the window is resized to be smaller the bees will move back into the canvas as soon as possible.

Just a bit of fun. Demo here.

Note: the bee SVG started from Pixabay and was a free download under Creative Commons license. I cannot remember which honeycomb SVG I started with unfortunately.

About

Simple animated canvas with bees moving about on a honeycomb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages