GCC Code Coverage Report


Directory: source/
File: source/utils/ecs_color.c
Date: 2023-12-18 09:27:49
Exec Total Coverage
Lines: 11 11 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 * Filename: ecs_color.c
3 * Path: source/utils
4 * Created Date: Saturday, September 30th 2023, 6:42:38 pm
5 * Author: osvegn
6 *
7 * Copyright (c) 2023 ECS
8 */
9
10 #include "utils/ecs_color.h"
11
12 1 void copy_color(ecs_color_t *dest, ecs_color_t *src)
13 {
14 1 *dest = *src;
15 1 }
16
17 1 void set_color(ecs_color_t *color, uchar r, uchar g, uchar b)
18 {
19 1 color->r = r;
20 1 color->g = g;
21 1 color->b = b;
22 1 }
23
24 1 void set_alpha(ecs_color_t *color, uchar alpha)
25 {
26 1 color->a = alpha;
27 1 }
28