MCPcopy Create free account
hub / github.com/btbd/smap / RenderColorRectWithAlphaCheckerboard

Method RenderColorRectWithAlphaCheckerboard

example/imgui/imgui.cpp:9861–9893  ·  view source on GitHub ↗

NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. I spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more rea

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

GetCurrentWindowFunction · 0.85
ImAlphaBlendColorFunction · 0.85
ImClampFunction · 0.85
ImMinFunction · 0.85
ImVec2Class · 0.85
AddRectFilledMethod · 0.80

Tested by

no test coverage detected