cockos.com
LICEcap is a lightweight application for simple animated screen captures on Windows and macOS. It can capture an area of the desktop and save directly to .GIF or its native lossless .LCF format. It is GPL free software and each download package includes the source.