当前位置:网站首页>Aardio - Shadow Gradient Text
Aardio - Shadow Gradient Text
2022-07-01 07:56:00 【Luguangqing】
This example uses the godking.paint library , Please go to :http://chengxu.online download .
effect :


Code 1:
import win.ui;
/*DSG{
{*/
var winform = win.form(text="aardio form";right=582;bottom=531)
winform.add(
plus={cls="plus";left=37;top=17;right=537;bottom=517;z=1}
)
/*}}*/
import godking.paint
var p = godking.paint.fromPlus(winform.plus,true/* Automatically refresh */,true/* Redraw the background */)
// Create a hatch brush
var b = p.brush.hatchBrush(10/* Brush style 0-52*/,0xFF000000/* The foreground */,0xFFFFFFFF/* Background color */)
// Draw hatched text with a brush
var font = ::LOGFONT(name=" In black ";point=120;color=0xFFFF0000;brush=b)
p.drawText(,/*y1*/,/*x2*/,/*y2*/," Shaded text ",font,0,0,0)
// Create a linear gradient brush
colors = {0xFFFF0000,0xFF00FF00,0xFF0000FF,0xFF00FFFF,0xFFFFFF00,0xFFFF00FF}
points = {0,0.2,0.5,0.7,0.8,1}
b = p.brush.lineBrush({1,1}/* The starting coordinates */,{200,200}/* End coordinates */,colors/* Color array */,points/* Position array */,/* Surround mode wrapMode*/)
// Draw linear gradient text with a brush
font.brush = b
p.drawText(-5,-5/*y1*/,/*x2*/,/*y2*/," Shaded text ",font,0,0,0)
winform.show();
win.loopMessage();Code 2:
import win.ui;
/*DSG{
{*/
var winform = win.form(text="aardio form";right=582;bottom=531)
winform.add(
plus={cls="plus";left=37;top=17;right=537;bottom=517;z=1}
)
/*}}*/
import godking.paint
var p = godking.paint.fromPlus(winform.plus,true/* Automatically refresh */,true/* Redraw the background */)
// Create shadow path
var path=..gdip.path(1/*_FillModeWinding*/)
path.addstring(" Shaded text ",gdip.family(" In black "),0,120*1.31,::RECTF(5,5,winform.plus.width,winform.plus.height),gdip.stringformat())
// Create a hatch brush
var b = p.brush.hatchBrush(18/* Brush style 0-52*/,0xFF000000/* The foreground */,0xFFFFFFFF/* Background color */)
// Draw hatched text with a brush
p.fillPath(path,b/* Fill color or brush object */)
// Create foreground text path
var path=..gdip.path(1/*_FillModeWinding*/)
path.addstring(" Shaded text ",gdip.family(" In black "),0,120*1.31,::RECTF(0,0,winform.plus.width,winform.plus.height),gdip.stringformat())
// Create a linear gradient brush
colors = {0xFFFF0000,0xFF00FF00,0xFF0000FF,0xFF00FFFF,0xFFFFFF00,0xFFFF00FF}
points = {0,0.2,0.5,0.7,0.8,1}
b = p.brush.lineBrush({1,1}/* The starting coordinates */,{200,200}/* End coordinates */,colors/* Color array */,points/* Position array */,/* Surround mode wrapMode*/)
// Draw linear gradient text with a brush
p.drawPath(path,0xFF000000/* Line color or pen object */,3/* Line width */)
p.fillPath(path,b/* Fill color or brush object */)
winform.show();
win.loopMessage();边栏推荐
- 【R语言】年龄性别频数匹配 挑选样本 病例对照研究,对年龄性别进行频数匹配
- Wang Yingqi, founder of ones, talks to fortune (Chinese version): is there any excellent software in China?
- Teach you how to apply for domestic trademark online step by step
- [R language] two /n data merge functions
- Long way to go with technology
- 论文学习——水文时间序列相似性查询的分析与研究
- 2022年流动式起重机司机考试练习题及在线模拟考试
- 良心安利万向轮 SolidWorks模型素材网站
- Caesar
- [untitled]
猜你喜欢
![[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions](/img/2c/07d729d49b1d74553decac4588074e.png)
[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions

Autosar 学习记录(1) – EcuM_Init

Aardio - 阴影渐变文字

5大组合拳,解决校园6大难题,护航教育信息化建设

Eigen matrix operation Library

SharePoint - how to quickly check whether SharePoint is standard or enterprise edition?

I bet on performance and won the CTO of the company. I want to build Devops platform!

Gui Gui programming (XV) - use scale to control font size changes

LM08丨网格系列之网格反转(精)

Latex formula code
随机推荐
Vhost kick & call principle
[skill] create Bat quick open web page
凸印的印刷原理及工艺介绍
[recommendation system] breakthrough and imagination of deep location interactive network dpin for meituan takeout recommendation scenario
AUTOSAR learning record (1) – ECUM_ Init
【无标题】
[batch dos-cmd command - summary and summary] - Common operators in the CMD window (<, < <, & <,>, > >, & >, & >, & &, ||, (),;, @)
How outlook puts together messages with the same discussion
【批处理DOS-CMD-汇总】扩展变量-延迟变量cmd /v:on、cmd /v:off、setlocal enabledelayedexpansion、DisableDelayedExpansion
[untitled]
[kv260] generate chip temperature curve with xadc
[programming training] delete public characters (hash mapping) + team competition (greedy)
2022 test questions and mock examinations for main principals of hazardous chemicals business units
Rk3399 platform development series explanation (network debugging) 7.30. What will affect the sending process of TCP packets?
Day5: scanner object, next() and nextline(), sequential structure, selection structure, circular structure
Gdip - hatchBrush图案表
Redisson watchdog mechanism, redisson watchdog performance problems, redisson source code analysis
三极管是一项伟大的发明
How to check ad user information?
Long way to go with technology