MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setTextColor

Method setTextColor

snap_drawing/src/snap_drawing/cpp/Layers/TextLayer.cpp:179–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void TextLayer::drawTextVisualEntriesShadows(DrawingContext& drawingContext,
180 const std::vector<TextLayoutVisualEntry>& visualEntries) {
181 for (const auto& visualEntry : visualEntries) {
182 if (visualEntry.kind == TextLayoutVisualEntryKindBackground) {
183 continue;
184 }
185
186 auto resolvedPaint = _textPaint;
187 resolvedPaint.getSkValue().setMaskFilter(
188 SkMaskFilter::MakeBlur(SkBlurStyle::kNormal_SkBlurStyle, _textShadow.radius, false));

Calls 2

getColorMethod · 0.45
setColorMethod · 0.45