Hello,
I want to draw using Fl_Offscreen, doing something like:
{
Fl_Offscreen oscr = fl_create_offscreen(120, 120);
fl_begin_offscreen(oscr);
fl_color(FL_BLACK);
fl_rectf(0, 0, 120, 120);
fl_color(FL_WHITE);
fl_rectf(-10, -10, 100, 100);
fl_end_offscreen();
// print offscreen color at (10, 10)
fl_delete_offscreen(oscr);
}
Two questions:
1) At the end of this code I want check the color of a given point. How can I do that?
2) I write to outside the pixmap (fl_rectf(-10, -10, 100, 100)), is that ok ?
Best regards
Håvard