File: onepixel.c

package info (click to toggle)
astrometry.net 0.93%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,372 kB
  • sloc: ansic: 163,192; python: 18,357; makefile: 1,522; sh: 138; cpp: 78; pascal: 67; awk: 56; perl: 9
file content (24 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 # This file is part of the Astrometry.net suite.
 # Licensed under a 3-clause BSD style license - see LICENSE
 */
#include <stdio.h>
#include "cairoutils.h"

int main() {
    unsigned char img[4];
    int W=1;
    int H=1;

    float x=20;
    float mag=100;
    float back=0;

    img[0] = 0;
    img[1] = 0;
    img[2] = 0;
    img[3] = 128;
    cairoutils_stream_png(stdout, img, W, H);

    return 0;
}