mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
14 lines
361 B
C++
14 lines
361 B
C++
#include "Examples.h"
|
|
|
|
void TextStrokeGradient(Painter& sw)
|
|
{
|
|
const char *txt = "GRADIENT TEXT";
|
|
Font fnt = Arial(100).Bold();
|
|
Size tsz = GetTextSize(txt, fnt);
|
|
sw.Text(100, 100, txt, fnt)
|
|
.Stroke(4, 100, 100, Blue(), 100 + tsz.cx, 100, LtRed());
|
|
}
|
|
|
|
INITBLOCK {
|
|
RegisterExample("Stroking text with linear gradient", TextStrokeGradient);
|
|
}
|