MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / bubbleDraw

Function bubbleDraw

source/ui/background.c:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void bubbleDraw(bubble_t* bubble, float top, float iod)
236{
237 if ((bubble->y+32) <= top)
238 return; // Nothing to do
239 u32 color = ((u32)bubble->fade << 24) | 0xFFFFFF;
240 float x = bubble->x + iod*(10+10*bubble->z) + 16*bubble->angleSin;
241 float y = bubble->y - top;
242 if (top > 0.0f)
243 x -= (400-320)/2;
244 drawingDrawImage(images_bubble_idx, color, x, y);
245}
246
247void backgroundDrawTop(float iod)
248{

Callers 2

backgroundDrawTopFunction · 0.85
backgroundDrawBotFunction · 0.85

Calls 1

drawingDrawImageFunction · 0.85

Tested by

no test coverage detected