Generating one or more linear blends
First Claim
1. A method of generating one or more linear blends from a list of one or more fill-paths defining a current gradient fill portion, and at least one new fill-path, where the fill-paths each comprise a single colored parallelogram, the method comprising the steps of:
- (a) adding one said new fill-path to said list to become a most-recent fill-path in said list, if each condition of a set thereof is met, otherwise proceeding to step (c), said set comprising at least one condition, said one condition comprising a difference in color between the color of the new fill-path and the color of the most-recent fill-path in said list being no greater than an error factor, and said error factor is changed from at least one previously used error factor for said list of fill-paths due to dependence of the error factor on the difference in color between the most-recent and the second-most-recent fill-paths in said list;
(b) repeating said step (a) for each remaining said new fill-path;
(c) generating a plurality of linear blends from the first fill-path in said list to the most-recent fill-path in said list such that said gradient fill portion represented by said fill-paths is approximated with a least number of linear blends; and
d) outputting the generated linear blends to an outer means being at least one of the storage device for storing the linear blends and a display device for displaying the linear blends.
1 Assignment
0 Petitions
Accused Products
Abstract
A method (1005) generates one or more linear blends. Initially, the method has a list of already received one or more fill-paths defining a current linear blend, and a newly received fill-path, where the fill-paths each comprise a single colored parallelogram (eg. 700). The method adds (1090) the new fill-path to the list to become the last fill-path in the list, if the difference (1230) in color between the new fill-path and the last fill-path in the list is no greater, in each color channel, than a predetermined threshold value multiplied by the difference in color between the last and second-last fill-paths in the list. The predetermined threshold value is preset to such a value so that the new fill-path will not be added to the list if the new fill-path does not visually form part of the current linear blend. The method repeats this step for each new fill-path received until the aforementioned condition is not satisfied. Then, the method generates (1040) one or more linear blends from the first fill-path in the list to the last fill-path in the list.
55 Citations
32 Claims
-
1. A method of generating one or more linear blends from a list of one or more fill-paths defining a current gradient fill portion, and at least one new fill-path, where the fill-paths each comprise a single colored parallelogram, the method comprising the steps of:
-
(a) adding one said new fill-path to said list to become a most-recent fill-path in said list, if each condition of a set thereof is met, otherwise proceeding to step (c), said set comprising at least one condition, said one condition comprising a difference in color between the color of the new fill-path and the color of the most-recent fill-path in said list being no greater than an error factor, and said error factor is changed from at least one previously used error factor for said list of fill-paths due to dependence of the error factor on the difference in color between the most-recent and the second-most-recent fill-paths in said list; (b) repeating said step (a) for each remaining said new fill-path; (c) generating a plurality of linear blends from the first fill-path in said list to the most-recent fill-path in said list such that said gradient fill portion represented by said fill-paths is approximated with a least number of linear blends; and d) outputting the generated linear blends to an outer means being at least one of the storage device for storing the linear blends and a display device for displaying the linear blends. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer readable medium encoded with a computer program element comprising computer program code means to make a computer execute a procedure to generate linear blends from a list of one or more fill-paths defining a current gradient fill portion, and at least one new fill-path, where the fill-paths each comprise a single colored parallelogram, the program code means comprising:
-
adding code means for adding one said new fill-path to said list to become a most recent fill-path in said list, if each condition of a set thereof is met, otherwise executing said generation code means, wherein said set comprises at least one condition, said one condition comprising a difference in color between the color of the new fill-path and the color of the most-recent fill-path in said list being no greater than an error factor, and said error factor is changed from at least one previously used error factor for said list of fill-paths due to a dependence of the error factor on the difference in color between the most-recent and the second-most-recent fill-paths in said list; code means for calling said adding code means for each remaining said new fill-path; generating code means for generating a plurality of linear blends from the first fill-path in said list to the most-recent fill-path in said list such that said gradient fill portion represented by said fill paths is approximated with a least number of linear blends; and output means for outputting the generated linear blends to at least one of a storage device for storing the linear blends and a display device for display of the linear blends. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
-
21. Apparatus for generating one or more linear blends from a list of one or more fill-paths defining a current gradient fill portion, and at least one new fill-path, where the fill-paths each comprise a single colored parallelogram, said apparatus comprising:
-
means for adding one said new fill-path to said list to become a most-recent fill-path in said list, if each condition of a set thereof is met, otherwise enabling a generating means, said set comprising at least one condition, said one condition comprising a difference in color between the color of the new fill-path and the color of the most-recent fill-path in said list being no greater than an error factor, and said error factor is changed from at least one previously used error factor for said list of fill-paths due to dependence of the error factor on the difference in color between the most-recent and the second-most-recent fill-paths in said list; means for repeating operation of said adding means for each remaining said new fill-path; said generating means being operable to generate a plurality of linear blends from the first fill-path in said list to the most-recent fill-path in said list such that said gradient fill portion represented by said fill paths is approximated with a least number of linear blends; and outputting means being at least one of the storage device for storing the linear blends and a display device for displaying the linear blends.
-
-
22. A method of generating linear blends from a list of one or more fill-paths defining a current gradient fill portion, and at least one new fill-path, where the fill-paths each comprise a single colored parallelogram, the method comprising the steps of:
-
(a) adding one said new fill-path to said list to become a most-recent fill-path in said list, if each condition of a set thereof is met, otherwise proceeding to step (c), said set comprising at least one condition, said one condition being based on the color of the new fill-path and the color of the most-recent fill-path and an error factor, and said error factor is preset to such a value so that the new fill-path will not be added to the list if the new fill-path does not visually form part of the current linear blend; (b) repeating said step (a) for each remaining said new fill-path; (c) generating a plurality of linear blends from the first fill-path in said list to the most-recent fill-path in said list by recursively partitioning the list according to exceeding a predetermined error tolerance of the color gradient between certain ones of the fill-paths such that said gradient fill portion represented by said fill paths is approximated with a least number of linear blends; and (d) providing the generated linear blends for at least one of storage in a storage device or display upon a display device. - View Dependent Claims (23, 24, 25, 26)
-
-
27. A computer readable medium encoded with a computer program, the computer program comprising computer program code means to make a computer execute a procedure to generate linear blends from a list of one or mom fill-paths defining a current gradient fill portion, and at least one new fill-path, where the fill-paths each comprise a single colored parallelogram, the program code means comprising:
-
adding code means for adding one said new fill-path to said list to become a most-recent fill-path in said list, if each condition of a set thereof is met, otherwise executing generating code means, said set comprising at least one condition, said one condition being based on the color of the new fill-path and the color of the most-recent fill-path and an error factor, and said error factor is preset to such a value so that the new fill-path will not be added to the list if the new fill-path does not visually form part of the current linear blend; code means for calling said adding code means for each remaining said new fill-path; said generating code means being for generating a plurality of linear blends from, the first fill-path in said list to the most-recent fill-path in said list by recursively partitioning the list according to exceeding a predetermined error tolerance of the color gradient between certain ones of the fill-paths such that said gradient fill portion represented by said fill paths is approximated with a least number of linear blends; and output means for outputting the generated linear blends to at least one of a storage device for storing the linear blends and a display device for displaying the linear blends. - View Dependent Claims (28, 29, 30, 31)
-
-
32. Apparatus for generating linear blends from a list of one or more fill-paths defining a current gradient fill portion, and at least one new fill-path, where the fill-paths each comprise a single colored parallelogram, the apparatus comprising:
-
means for adding one said new fill-path to said list to become a most-recent fill-path in said list, if each condition of a set thereof is met, otherwise enabling generating means, said set comprising at least one condition, said one condition being based on the color of the new fill-path and the color of the most-recent fill-path and an error factor, and said error factor is preset to such a value so that the new fill-path will not be added to the list if the new fill-path does not visually form part of the current linear blend; means for repeating operation of said adding means for each remaining said new fill-path; said generating means being operable to generate a plurality of linear blends from the first fill-path in said list to the most-recent fill-path in said list by recursively partitioning the list according to exceeding a predetermined error tolerance of the color gradient between certain ones of the fill-paths such that said gradient fill portion represented by said fill paths is approximated with a least number of linear blends; and output means to which the generated linear blends are output, the output means being at least one of a storage device for storing the linear blends and a display device for displaying the linear blends.
-
Specification