]> git.imager.perl.org - imager.git/blame - design/draw.pod
avoid a possible sign-extension for offsets/sizes in SGI
[imager.git] / design / draw.pod
CommitLineData
9b1ec2b8
TC
1=head1 NAME
2
3draw.pod - overview of planned drawing changes
4
5=head1 SYNOPSIS
6
7 fix the processing done by the current combine modes
8 combine modes for most drawing operations
9 thick lines
10
11=head1 combine mode fixes
12
13Currently:
14
15=over
16
17=item *
18
19the calculations are just wrong
20
21=item *
22
23they don't handle adapting to the target channel count
24
25=back
26
27To do:
28
29=over
30
31=item *
32
33add a render function that calls the fill function then applies it to
34the target based on the combine mode.
35
36=item *
37
38modify fill functions to always produce RGBA
39
40=item *
41
42have the combine mode functions just generate the color, the render
43function can then alpha adjust it and apply it to the target
44
45=back
46
47=head1 combine modes for drawing functions
48
49=over
50
51=item *
52
53write versions of each function that take a combine mode
54
55=back
56
57=head1 thick lines
58
59Two possible approaches:
60
61=over
62
63=item *
64
65given a polyline, generate a polygon for the entire shape - more
66complex, overlap problems
67
68=item *
69
70given a polyline, generate polygons for each segment, draw to a work
71image and use that to compose the fill - possible problems joining the
72segments
73
74=back