colors

extract colors from pictures
git clone git://git.2f30.org/colors
Log | Files | Refs | README | LICENSE

commit e13e5e6a5b36694048d5ed3d29d9e3f32f069a49
parent c13f1f67f431ca4c2eed7bb839dc746f9732b908
Author: lostd <lostd@2f30.org>
Date:   Thu, 11 Jun 2015 16:51:45 +0300

Move init cluster settings all at the same place

Diffstat:
Mcolors.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/colors.c b/colors.c @@ -159,8 +159,8 @@ initcluster_hue(struct cluster *c, int i) c->center = hueselect(i); } -void (*initcluster)(struct cluster *c, int i) = initcluster_greyscale; -size_t initspace = 256; +void (*initcluster)(struct cluster *c, int i); +size_t initspace; void initclusters(struct cluster *c, size_t n) @@ -321,6 +321,9 @@ main(int argc, char *argv[]) RB_INIT(&pointhead); parseimg(argv[0], fillpoints); + initcluster = initcluster_greyscale; + initspace = 256; + if (rflag) srand(time(NULL)); if (pflag) {