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

Method setStroke

snap_drawing/src/snap_drawing/cpp/Drawing/Paint.cpp:52–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 if (color == Color::transparent()) {
51 getSkValue().setColorFilter(nullptr);
52 } else {
53 getSkValue().setColorFilter(SkColorFilters::Blend(color.getSkValue(), SkBlendMode::kSrcATop));
54 }
55}
56
57void Paint::setStroke(bool stroke) {

Callers 3

onInitializeMethod · 0.45
SpinnerLayerMethod · 0.45
drawForegroundMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected