Effect
本章将向你展示如何编写一些复杂的属性来达成某些效果,例如:背景色、形状等
This chapter will show you how to write complex attributes to achieve certain effects, such as background color, shape, etc
Attention
当你需要编写需要Sdf2d
辅助的效果时请引入import makepad_draw::shader::std::*;
When you need to write some special effects, you need to import
Sdf2d
import makepad_draw::shader::std::*;