MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / bgColor

Method bgColor

src/app/document.cpp:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77// Main properties
78
79color_t Document::bgColor() const
80{
81 return color_utils::color_for_target(
82 Preferences::instance().colorBar.bgColor(),
83 ColorTarget(ColorTarget::BackgroundLayer,
84 sprite()->pixelFormat(),
85 sprite()->transparentColor()));
86}
87
88color_t Document::bgColor(Layer* layer) const
89{

Callers 15

cropSpriteMethod · 0.45
saveMethod · 0.45
onExecuteMethod · 0.45
onExecuteMethod · 0.45
onExecuteMethod · 0.45
onExecuteMethod · 0.45
onExecuteMethod · 0.45
ClearRectMethod · 0.45
ClearCelMethod · 0.45
onExecuteMethod · 0.45
FlipMaskedCelMethod · 0.45
onExecuteMethod · 0.45

Calls 6

instanceFunction · 0.85
ColorTargetClass · 0.85
transparentColorMethod · 0.80
pixelFormatMethod · 0.45
isBackgroundMethod · 0.45
spriteMethod · 0.45

Tested by

no test coverage detected