about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-04-16 14:35:16 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-04-16 14:35:16 -0400
commit5fb54e56fabb69237fdf66d4134483d37b455f5c (patch)
tree11d152cb3f76d6e1d4c23fb07adb20ba3335b842
parentf7b91944738e732ab4bfea50ea0a2fffd92a51a6 (diff)
downloaddifference-5fb54e56fabb69237fdf66d4134483d37b455f5c.tar.gz
difference-5fb54e56fabb69237fdf66d4134483d37b455f5c.tar.bz2
difference-5fb54e56fabb69237fdf66d4134483d37b455f5c.zip
Tweaked image generation
-rw-r--r--difference.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/difference.cpp b/difference.cpp index 66e4550..4575671 100644 --- a/difference.cpp +++ b/difference.cpp
@@ -278,7 +278,7 @@ int main(int argc, char** argv)
278 composite.draw(Magick::DrawableCompositeImage(width, 0, pic2)); 278 composite.draw(Magick::DrawableCompositeImage(width, 0, pic2));
279 composite.font("@coolvetica.ttf"); 279 composite.font("@coolvetica.ttf");
280 280
281 double fontsize = rand() % 72 + 16; 281 double fontsize = 72;
282 for (;;) 282 for (;;)
283 { 283 {
284 composite.fontPointsize(fontsize); 284 composite.fontPointsize(fontsize);
@@ -309,7 +309,8 @@ int main(int argc, char** argv)
309 composite.fontTypeMetrics(ant2, &metric); 309 composite.fontTypeMetrics(ant2, &metric);
310 int x2 = (width - 40 - metric.textWidth())/2+20+width; 310 int x2 = (width - 40 - metric.textWidth())/2+20+width;
311 composite.strokeColor("white"); 311 composite.strokeColor("white");
312 composite.strokeWidth(1); 312 composite.strokeWidth(2);
313 composite.antiAlias(false);
313 composite.draw(Magick::DrawableText(x1, y, ant1)); 314 composite.draw(Magick::DrawableText(x1, y, ant1));
314 composite.draw(Magick::DrawableText(x2, y, ant2)); 315 composite.draw(Magick::DrawableText(x2, y, ant2));
315 316