Go to the source code of this file.
|
| REG_FIDDLE (SkSL_MinifiedSkSL, 200, 200, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
SkSL_MinifiedSkSL |
, |
|
|
200 |
, |
|
|
200 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file SkSL_MinifiedSkSL.cpp.
4 {
5static constexpr char SKSL_MINIFIED_GradientShader[] =
6"half4 main(float2 a){float b=1.-a.y*.006666667;if(a.x<100.)return half4(float4"
7"(0.,.5,.75,1.)*b);else return half4(half3(0.,.5,.75),half(b));}";
8
12 {});
13
14
16
17
19 p.setShader(myShader);
21}}
constexpr SkColor SK_ColorGRAY
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawPaint(const SkPaint &paint)
static Result MakeForShader(SkString sksl, const Options &)