Go to the source code of this file.
◆ drawCell()
Definition at line 45 of file hairmodes.cpp.
45 {
46
48 paint.setAntiAlias(
true);
49
52
56
60 for (int angle = 0; angle < 24; ++angle) {
65 }
66
68}
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
#define SkScalarSin(radians)
#define SkScalarCos(radians)
void drawOval(const SkRect &oval, const SkPaint &paint)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
void inset(float dx, float dy)
static constexpr SkRect MakeWH(float w, float h)
◆ make_bg_shader()
Definition at line 70 of file hairmodes.cpp.
70 {
75
79}
static SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
void allocN32Pixels(int width, int height, bool isOpaque=false)
uint32_t * getAddr32(int x, int y) const
SkSamplingOptions(SkFilterMode::kLinear))
◆ gHeight
◆ gModes
Initial value:= {
}
@ kSrcOver
r = s + (1-sa)*d
@ kXor
r = s*(1-da) + d*(1-sa)
@ kSrcATop
r = s*da + d*(1-sa)
@ kDstATop
r = d*sa + s*(1-da)
@ kDstOver
r = d + (1-da)*s
Definition at line 25 of file hairmodes.cpp.
◆ gWidth