From 192a89a7f9f396fff4eb6b0836f597c376e98932 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 20 May 2022 21:25:39 -0700 Subject: modules/shapes: add procedural 2D shapes module Mostly for compositing purposes, here will be a corpus of 2D shapes, parameterized/procedurally generated and able to rotate and perhaps have other dynamics added. What shapes are there presently I had started implementing in checkers as "styles", before realizing they really should just be a separate module checkers can call into. Not terribly interesting by itself, but as blinds and checkers demonstrated, these things deliver a lot of value in compositional situations. They're creating the palette to draw from. --- src/til.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/til.c') diff --git a/src/til.c b/src/til.c index 08a574c..8451113 100644 --- a/src/til.c +++ b/src/til.c @@ -37,6 +37,7 @@ extern til_module_t plato_module; extern til_module_t ray_module; extern til_module_t roto_module; extern til_module_t rtv_module; +extern til_module_t shapes_module; extern til_module_t snow_module; extern til_module_t sparkler_module; extern til_module_t spiro_module; @@ -61,6 +62,7 @@ static const til_module_t *modules[] = { &ray_module, &roto_module, &rtv_module, + &shapes_module, &snow_module, &sparkler_module, &spiro_module, -- cgit v1.2.1