summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/14_09.c
blob: 6ca905d72aadbf6523e5bf8fd25eaff2991b0971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

float point_color(point_number)
int point_number;
{
    float correction;  /* color correction factor */
    extern float red,green,blue;/* current colors */

    correction = lookup(point_number);
    return (red*correction * 100.0 + 
            blue*correction * 10.0 +
            green*correction);
}