summaryrefslogtreecommitdiffstatsci
path: root/tests/gradient_transform.c
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-07-15 13:48:04 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-07-15 13:48:04 +0200
commita77dc464f91da554b5952ea965aa4b65cb0a511f (patch)
tree62c72758c7298600aa920a1e7b343670ea207086 /tests/gradient_transform.c
parente6b3bfbe53dbb850414ec7904b9f00e1aacc330d (diff)
copy tests from masternewvx-post-transform
Diffstat (limited to 'tests/gradient_transform.c')
-rw-r--r--tests/gradient_transform.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/gradient_transform.c b/tests/gradient_transform.c
deleted file mode 100644
index a9d51b8..0000000
--- a/tests/gradient_transform.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "test.h"
-
-void test(){
- VkvgContext ctx = vkvg_create(surf);
-
- //vkvg_translate(ctx,-100,-100);
-
- vkvg_translate(ctx,100,100);
- vkvg_rotate(ctx,0.5);
-
- //vkvg_scale(ctx,2,2);
- VkvgPattern pat = vkvg_pattern_create_linear(0,0,200,0);
- //vkvg_pattern_set_extend(pat, VKVG_EXTEND_REPEAT);
- vkvg_set_line_width(ctx, 20);
- vkvg_pattern_add_color_stop(pat, 0, 1, 0, 0, 1);
- vkvg_pattern_add_color_stop(pat, 0.5, 0, 1, 0, 1);
- vkvg_pattern_add_color_stop(pat, 1, 0, 0, 1, 1);
- vkvg_set_source (ctx, pat);
- vkvg_rectangle(ctx,0,0,200,200);
- vkvg_fill (ctx);
- //vkvg_stroke (ctx);
- //vkvg_paint(ctx);
- vkvg_pattern_destroy (pat);
-
- vkvg_destroy(ctx);
-}
-
-int main(int argc, char *argv[]) {
-
- perform_test (test, 1024, 768);
-
- return 0;
-}