diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-06-24 16:13:29 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-06-24 17:23:21 -0700 |
| commit | 29c97b886fb6fe4d764568e21f9d45b2b08ec863 (patch) | |
| tree | ef86a7f01ceddde657a97088ace88787ca3ae09f /src/shapes.cpp | |
| parent | fb506c0829135d4ac35d0fbbdc76f19c6a58ca21 (diff) | |
Enable gradient fill types as random selected fill types
Also refactor the fill code from skiaDrawRandomizedShape() into its own
routine.
Diffstat (limited to 'src/shapes.cpp')
| -rw-r--r-- | src/shapes.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/shapes.cpp b/src/shapes.cpp index b2ae017..d9cd904 100644 --- a/src/shapes.cpp +++ b/src/shapes.cpp @@ -10,6 +10,7 @@ #include "shapes.h" const char *gFillTypes[] = { + "random", "none", "solid", "linear-gradient", @@ -34,6 +35,7 @@ convertToFillType(const char *fill_name) } const char *gShapes[] = { + "random", "circle", "rectangle", "triangle", @@ -98,13 +100,7 @@ generate_random_shape() fill_type_t generate_random_fill_type() { -#if 0 - // TODO: Not all fill styles are implemented yet return (fill_type_t) ((((double)(CB_FILL_END-1) * rand())/RAND_MAX) + 1); -#else - // TODO: So for now only go up to solid fills - return (fill_type_t) ((((double)(CB_FILL_SOLID) * rand())/RAND_MAX) + 1); -#endif } /* |