source: trunk/src/astrometry/render/render_solid.c @ 12166

Revision 12166, 1.1 KB checked in by dstn, 15 months ago (diff)

tilerender: configurable bg color; match files

Line 
1/*
2   This file is part of the Astrometry.net suite.
3   Copyright 2007 Keir Mierle and Dustin Lang.
4
5   The Astrometry.net suite is free software; you can redistribute
6   it and/or modify it under the terms of the GNU General Public License
7   as published by the Free Software Foundation, version 2.
8
9   The Astrometry.net suite is distributed in the hope that it will be
10   useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   General Public License for more details.
13
14   You should have received a copy of the GNU General Public License
15   along with the Astrometry.net suite ; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17*/
18#include <stdio.h>
19#include <math.h>
20#include <stdarg.h>
21
22#include "tilerender.h"
23#include "render_solid.h"
24
25int render_solid(cairo_t* cairo, render_args_t* args) {
26        double rgba[] = { 0,0,0,1 };
27        get_first_rgba_arg_of_type(args, "solid_rgba ", rgba);
28        cairo_set_source_rgba(cairo, rgba[0], rgba[1], rgba[2], rgba[3]);
29        cairo_paint(cairo);
30    return 0;
31}
32
Note: See TracBrowser for help on using the repository browser.