#include "test.h" /*void drawRandomRect (VkvgContext ctx) { float w = (float)test_width; float h = (float)test_height; randomize_color(ctx); float z = truncf((0.5f*w*rand()/RAND_MAX)+1.f); float v = truncf((0.5f*w*rand()/RAND_MAX)+1.f); float x = truncf((w-z)*rand()/RAND_MAX); float y = truncf((h-v)*rand()/RAND_MAX); vkvg_rectangle(ctx, x, y, z, v); }*/ static vkvg_fill_rule_t fill_rule = VKVG_FILL_RULE_NON_ZERO; static float line_width = 5.f; static float shape_size = 0.1f; void _shape_fill(shape_t shape){ vkvg_surface_clear(surf); VkvgContext ctx = vkvg_create(surf); vkvg_set_fill_rule(ctx, fill_rule); for (uint32_t i=0; i