/
Type_6_Shading.pm6
35 lines (26 loc) · 2.26 KB
/
Type_6_Shading.pm6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use v6;
# generated by: ../../etc/make-modules.p6 --role-name=ISO_32000::Type_6_Shading ../../resources/ISO_32000/Type_6_Shading_entries.json
#| PDF 32000-1:2008 Table 84 – Additional Entries Specific to a Type 6 Shading Dictionary
role ISO_32000::Type_6_Shading {
method BitsPerCoordinate {...};
method BitsPerComponent {...};
method BitsPerFlag {...};
method Decode {...};
method Function {...};
}
=begin pod
=head1 Methods (Entries)
=head2 BitsPerCoordinate [integer]
- (Required) The number of bits used to represent each geometric coordinate. The value is 1, 2, 4, 8, 12, 16, 24, or 32.
=head2 BitsPerComponent [integer]
- (Required) The number of bits used to represent each colour component. The value is 1, 2, 4, 8, 12, or 16.
=head2 BitsPerFlag [integer]
- (Required) The number of bits used to represent the edge flag for each patch (see below). The value is 2, 4, or 8, but only the least significant 2 bits in each flag value is used. Valid values for the edge flag is 0, 1, 2, and 3.
=head2 Decode [array]
- (Required) An array of numbers specifying how to map coordinates and colour components into the appropriate ranges of values. The decoding method is similar to that used in image dictionaries (see 8.9.5.2, "Decode Arrays"). The ranges is specified as follows:
[ x min x max y min y max c 1,min c 1,max … c n,min c n,max ]
Only one pair of c values is specified if a Function entry is present.
=head2 Function [function]
- (Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions (where n is the number of colour components in the shading dictionary’s colour space). If this entry is present, the colour data for each vertex is specified by a single parametric variable rather than by n separate colour components. The designated function(s) is called with each interpolated value of the parametric variable to determine the actual colour at each point. Each input value is forced into the range interval specified for the corresponding colour component in the shading dictionary’s Decode array. Each function’s domain is a superset of that interval. If the value returned by the function for a given colour component is out of range, it is adjusted to the nearest valid value.
This entry is not used with an Indexed colour space.
=end pod