updated awaken animation for unveiling

This commit is contained in:
PS 2021-04-19 18:58:51 -10:00
parent 176c543160
commit 27ad4cd579
3 changed files with 39 additions and 3 deletions

View File

@ -1,7 +1,7 @@
lumenarium_animation_file; lumenarium_animation_file;
animation_name: "awaken"; animation_name: "awaken";
layers_count: 3; layers_count: 3;
blocks_count: 5; blocks_count: 8;
playable_range:{ playable_range:{
min: 0; min: 0;
max: 7200; max: 7200;
@ -23,7 +23,7 @@ layers:{
blocks:{ blocks:{
block:{ block:{
frame_range:{ frame_range:{
min: 94; min: 0;
max: 1363; max: 1363;
}; };
layer_index: 0; layer_index: 0;
@ -39,7 +39,7 @@ blocks:{
}; };
block:{ block:{
frame_range:{ frame_range:{
min: 71; min: 5525;
max: 7200; max: 7200;
}; };
layer_index: 2; layer_index: 2;
@ -61,4 +61,28 @@ blocks:{
layer_index: 1; layer_index: 1;
animation_name: "Pattern_StemSolid"; animation_name: "Pattern_StemSolid";
}; };
block:{
frame_range:{
min: 0;
max: 1917;
};
layer_index: 2;
animation_name: "Pattern_Blue";
};
block:{
frame_range:{
min: 1823;
max: 3803;
};
layer_index: 2;
animation_name: "Pattern_RainbowLoadingBar";
};
block:{
frame_range:{
min: 3670;
max: 5720;
};
layer_index: 2;
animation_name: "Pattern_Rainbow";
};
}; };

View File

@ -865,5 +865,15 @@ Pattern_RainbowLoadingBar(led_buffer* Leds, led_buffer_range Range, assembly Ass
} }
} }
internal void
Pattern_Blue(led_buffer* Leds, led_buffer_range Range, assembly Assembly, r32 Time, gs_memory_arena* Transient, u8* UserData)
{
pixel Blue = pixel{0, 0, 255};
for (u32 LedIndex = Range.First; LedIndex < Range.OnePastLast; LedIndex++)
{
Leds->Colors[LedIndex] = Blue;
}
}
#define BLUMEN_PATTERNS_H #define BLUMEN_PATTERNS_H
#endif // BLUMEN_PATTERNS_H #endif // BLUMEN_PATTERNS_H

View File

@ -215,6 +215,8 @@ BlumenLumen_LoadPatterns(app_state* State)
Patterns_PushPattern(Patterns, Pattern_GrowFadeMask, PATTERN_MULTITHREADED); Patterns_PushPattern(Patterns, Pattern_GrowFadeMask, PATTERN_MULTITHREADED);
Patterns_PushPattern(Patterns, Pattern_RainbowLoadingBar, PATTERN_MULTITHREADED); Patterns_PushPattern(Patterns, Pattern_RainbowLoadingBar, PATTERN_MULTITHREADED);
Patterns_PushPattern(Patterns, Pattern_Blue, PATTERN_MULTITHREADED);
} }
internal void internal void