aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/lolwut.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/src/lolwut.h
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz
Remove testing data
Diffstat (limited to 'examples/redis-unstable/src/lolwut.h')
-rw-r--r--examples/redis-unstable/src/lolwut.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/examples/redis-unstable/src/lolwut.h b/examples/redis-unstable/src/lolwut.h
deleted file mode 100644
index 914db0d..0000000
--- a/examples/redis-unstable/src/lolwut.h
+++ /dev/null
@@ -1,35 +0,0 @@
1/*
2 * Copyright (c) 2018-Present, Redis Ltd.
3 * All rights reserved.
4 *
5 * Licensed under your choice of (a) the Redis Source Available License 2.0
6 * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
7 * GNU Affero General Public License v3 (AGPLv3).
8 */
9
10/* This structure represents our canvas. Drawing functions will take a pointer
11 * to a canvas to write to it. Later the canvas can be rendered to a string
12 * suitable to be printed on the screen, using unicode Braille characters. */
13
14/* This represents a very simple generic canvas in order to draw stuff.
15 * It's up to each LOLWUT versions to translate what they draw to the
16 * screen, depending on the result to accomplish. */
17
18#ifndef __LOLWUT_H
19#define __LOLWUT_H
20
21typedef struct lwCanvas {
22 int width;
23 int height;
24 char *pixels;
25} lwCanvas;
26
27/* Drawing functions implemented inside lolwut.c. */
28lwCanvas *lwCreateCanvas(int width, int height, int bgcolor);
29void lwFreeCanvas(lwCanvas *canvas);
30void lwDrawPixel(lwCanvas *canvas, int x, int y, int color);
31int lwGetPixel(lwCanvas *canvas, int x, int y);
32void lwDrawLine(lwCanvas *canvas, int x1, int y1, int x2, int y2, int color);
33void lwDrawSquare(lwCanvas *canvas, int x, int y, float size, float angle, int color);
34
35#endif