mirror of
https://github.com/MoHadiShibli/Control4Free.git
synced 2026-10-06 08:00:26 +02:00
The mark is a vector DualShock 4 seen from above (launcher/logo.c), filled with stb_truetype's anti-aliased rasterizer through a small path API in draw.c. The app's top bar and the page's top bar, toast and favicon all use it. The package icon shows three controllers with their light bars glowing in the page's player colours.
21 lines
804 B
C
21 lines
804 B
C
#ifndef C4F_LAUNCHER_LOGO_H
|
|
#define C4F_LAUNCHER_LOGO_H
|
|
/* The Control4Free mark: a DualShock 4 seen from above, in a 1000 x 640
|
|
* design box (y down). The page's app mark, toast icon and favicon use the
|
|
* same path: print it with `build/launcher/launcher-art svg` after a change. */
|
|
#include "draw.h"
|
|
|
|
#define C4F_LOGO_CENTER_X 500.0f
|
|
#define C4F_LOGO_CENTER_Y 320.0f
|
|
#define C4F_LOGO_WIDTH 880.0f /* body width in design units */
|
|
|
|
/* cutouts: 0 for the bare outline, 1 with the buttons, touchpad and sticks. */
|
|
void c4fLogoPath(C4fPath *p, int cutouts);
|
|
/* The light bar along the top edge, for an LED colour. */
|
|
void c4fLogoLightPath(C4fPath *p);
|
|
|
|
/* A placement that centres the controller at x,y, `width` pixels wide. */
|
|
C4fPlacement c4fLogoAt(float x, float y, float width, float angle);
|
|
|
|
#endif
|