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

Daeymon

Member
OP
Newcomer
Joined
Nov 13, 2012
Messages
14
Trophies
0
Age
38
XP
264
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?
 

lincruste

Well-Known Member
Member
Joined
Jan 13, 2008
Messages
373
Trophies
1
Location
france
XP
1,150
Country
Antarctica
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)
 

Daeymon

Member
OP
Newcomer
Joined
Nov 13, 2012
Messages
14
Trophies
0
Age
38
XP
264
Country
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.
 

Daeymon

Member
OP
Newcomer
Joined
Nov 13, 2012
Messages
14
Trophies
0
Age
38
XP
264
Country
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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys