rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
ui_watermark.c File Reference

The SIMULATION watermark along the canvas diagonal. More...

#include "ui_watermark.h"
#include <math.h>
#include <string.h>
#include "ui_theme.h"

Data Structures

struct  [struct].s_cache

Macros

#define TEXT   "SIMULATION"
#define ALPHA   38
#define WM_MAX_POINTS   6144
 The point table's size: 6,144 points, 24KB.

Functions

void ui_watermark_invalidate (void)
void ui_watermark (gfx_canvas_t *c)

Variables

static struct  s_cache

Detailed Description

The SIMULATION watermark along the canvas diagonal.

SPDX-License-Identifier: MIT

Function Documentation

◆ ui_watermark()

void ui_watermark ( gfx_canvas_t * c)

Draw "SIMULATION" across the whole canvas, blended over what is there.

◆ ui_watermark_invalidate()

void ui_watermark_invalidate ( void )

Drop the cached stencil, so the next call rebuilds it.