build/api-examples/Framebuffer.cpp¶
Complete program from the Framebuffer API reference. Save it at the path shown above and use the build command in the reference page.
Source files · Download Framebuffer.cpp
#include "framebuffer.hpp"
int main()
{
gaspardos::Framebuffer image(320, 240);
image.clear(0x00201810);
image.circle(160, 120, 40, 0x00ffffff);
return image.pixel(200, 120) == 0x00ffffff ? 0 : 1;
}