[gegl/soc-2011-ops] Added cubsim op



commit 983a0604b69f79b1a1d3bf2b21095d1dec9254c9
Author: Robert Sasu <sasu robert gmail com>
Date:   Mon Jul 11 13:56:17 2011 +0300

    Added cubsim op

 operations/workshop/cubism.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/operations/workshop/cubism.c b/operations/workshop/cubism.c
index 939b0fc..e301218 100644
--- a/operations/workshop/cubism.c
+++ b/operations/workshop/cubism.c
@@ -27,7 +27,7 @@
 
 #ifdef GEGL_CHANT_PROPERTIES
 
-gegl_chant_double (tile_size, _("Tile size"), 0.0, 100.0, 10.0,
+gegl_chant_double (tile_size, _("Tile size"), 0.0, 256.0, 10.0,
                   _("Tile size"))
 gegl_chant_double (tile_saturation, _("Tile saturation"), 0.0, 10.0, 2.5,
                   _("Tile saturation"))
@@ -54,8 +54,6 @@ gegl_chant_int (seed, _("Seed"), 0 , G_MAXINT, 1,
 #define MAX_POINTS        4
 #define RANDOMNESS        5
 
-FILE *f;
-
 typedef struct
 {
   gint x,y;
@@ -267,7 +265,7 @@ fill_poly_color (Polygon             *poly,
   gint          size_x, size_y;
   gint         *max_scanlines, *max_scanlines_iter;
   gint         *min_scanlines, *min_scanlines_iter;
-  gint          val;
+  gdouble       val;
   gfloat        alpha;
   gfloat        buf[4];
   gint          i, j, x, y;
@@ -288,6 +286,7 @@ fill_poly_color (Polygon             *poly,
   ey = poly->pts[1].y;
 
   dist = sqrt (pow((ex - sx),2) + pow((ey - sy),2));
+
   if (dist > 0.0)
     {
       one_over_dist = 1.0 / dist;
@@ -614,8 +613,6 @@ gegl_chant_class_init (GeglChantClass *klass)
   GeglOperationClass       *operation_class;
   GeglOperationFilterClass *filter_class;
 
-  f = fopen ("tryyy","w+t");
-
   operation_class = GEGL_OPERATION_CLASS (klass);
   filter_class    = GEGL_OPERATION_FILTER_CLASS (klass);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]