fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Joe :ferris: :nixos:

This simulation I made demonstrates how mosquitoes in a room can quickly end up in a bug zapper with a light even though they are not attracted to light.
Mosquitoes use the light to tell direction. Attraction occurs as an emergent property of using a nearby light to navigate under the assumption that it is "at infinity" (like the sun and moon are in nature), being in a confined space, and not preferring any direction.
This is explanatory and is not a perfect model of mosquito navigation.

If anyone wants code, a better graphic, or anything else let me know.

being able to circle the light may be helpful for attracting these pests

@Joe_0237 cool!
I'm the user you replied with this simulation at Lemmy.
What did you use?

@necrxfagivs awesome!Python and the Pillow library to make an animated gif, and ffmeg to render video from it

A working raster image represents the scene, each frame is copied into an array then that array is saved into a gif.

The mosquitoes travel in straight lines, using the light to tell direction, when they hit a wall or the light they pick a new random direction, if they do not exit the light in the next time step then they die.