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

Method setTransparentColor

src/doc/sprite.cpp:159–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void Sprite::setTransparentColor(color_t color)
160{
161 m_transparentColor = color;
162
163 // Change the mask color of all images.
164 std::vector<Image*> images;
165 getImages(images);
166 for (Image* image : images)
167 image->setMaskColor(color);
168}
169
170int Sprite::getMemSize() const
171{

Callers 1

TESTFunction · 0.45

Calls 1

setMaskColorMethod · 0.45

Tested by 1

TESTFunction · 0.36