aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/rendering.cpp2
-rw-r--r--src/example/rendering_particle.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp
index a7cb5d6..f481f03 100644
--- a/src/example/rendering.cpp
+++ b/src/example/rendering.cpp
@@ -33,7 +33,7 @@ int main() {
obj.add_component<Camera>(Color::get_red());
}
{
- Color color(0, 0, 0, 0);
+ Color color(255, 0, 0, 0);
obj1.add_component<Sprite>(make_shared<Texture>("../asset/texture/second.png"), color, FlipSettings{true, true});
obj1.add_component<Sprite>(make_shared<Texture>("../asset/texture/second.png"), color, FlipSettings{true, true});
}
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},