aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering_particle.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-14 10:05:08 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-14 10:05:08 +0100
commit767f40a61952892d60d204ecaaffa07e7e396d28 (patch)
tree383a739a948d56f297c3c83f83960f676d1d2969 /src/example/rendering_particle.cpp
parent8850ba096b6b4ae2dc3a813620dd35433b3c6c55 (diff)
color paremeter in sprite works
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r--src/example/rendering_particle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp
index dd08354..cb95ede 100644
--- a/src/example/rendering_particle.cpp
+++ b/src/example/rendering_particle.cpp
@@ -22,9 +22,9 @@ using namespace std;
int main(int argc, char * argv[]) {
GameObject game_object(0, "", "", Vector2{100, 100}, 0, 0.1);
- Color color(0, 0, 0, 0);
+ Color color(255, 255, 255, 0);
Sprite test_sprite = game_object.add_component<Sprite>(
- make_shared<Texture>("../asset/texture/img.png"), color,
+ make_shared<Texture>("../asset/texture/img.png"), Color::get_red(),
FlipSettings{false, false});
game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{
.position = {0, 0},