C | fortran | barva |
0 | 1 | bela |
1 | 2 | rdeča |
2 | 3 | rumena |
3 | 4 | zelena |
4 | 5 | cyan - svetlo modra |
5 | 6 | modra |
6 | 7 | vijolična |
7 | 8 | črna |
typedef union { Prgb rgb; /*Red Green Blue colour specification*/ Pcieluv cieluv; /*CIE L*u*v* colour specification*/ Phls hls; /*Hue Lightness Saturation spec */ Phsv hsv; /*Hue Saturation Value colour spec*/ Pdata unsupp; /*Colour in an unsupported col. mod.*/ } Pcolr_rep; typedef struct { Pfloat red; Pfloat green; Pfloat blue; } Prgb; typedef struct { Pfloat u_prime; /* u' u prime chromaticity */ Pfloat v_prime; /* v' v prime chromaticity */ Pfloat y; /* Y luminance */ } Pcieluv; typedef struct { Pfloat hue; Pfloat lightness; Pfloat satur; } Phls; typedef struct { Pfloat hue; Pfloat satur; Pfloat value; } Phsv; typedef struct { size_t size; void *data; } Pdata;Parametri - For: