Homebrew DevkitPro Citro2d - FadeIn/FadeOut Transitions example or documentation wanted

  • Thread starter Thread starter Daeymon
  • Start date Start date
  • Views Views 1,898
  • Replies Replies 3

Daeymon

Member
Newcomer
Joined
Nov 13, 2012
Messages
14
Reaction score
0
Trophies
0
Age
41
XP
294
Country
Citro2d lists fadeIn/fadeOut transitions as one of its features but I can"t seem to figure out the functions for this feature. I also cannot find any examples or documentation in regard to it. Anyone able to help?
 
Citro2d lists fadeIn/fadeOut transitions as one of its features but I can"t seem to figure out the functions for this feature. I also cannot find any examples or documentation in regard to it. Anyone able to help?
Citro2d has a doxygen-generated reference.
All I could find in regard to C2D_Fade is this page:
https://citro2d.devkitpro.org/group__Env.html#ga136cfc0ceb895a89efcb6b4a8adc54a8

void C2D_Fade (u32 color)

Parameters
[in] color 32-bit RGBA color value to be used as the fading color (0 by default)
 
I've seen C2D_Fade and played with it, but I can't really see how to use it to establish a transition unless I'm meant to use it over several frames through a loop. Just hoping to see an example. Maybe I'll go on the git and make it a request on the Issues board.
 
Just an update if anyone cares, I got C2D_Fade working. And as I suspected, you need to run it over several frames, with the alpha incrementing from 0 to 255 before changing to the new screen, and then incrementing from 255 to 0 to complete the transition. TWLoader does something very similar to achieve a transition, which helped me realise how to use this function so big thanks to Robz8. Hopefully the devkitPro team will put an example on their repos to make it clearer for others who want to use this feature of Citro2d.
 

Site & Scene News

Popular threads in this forum