From 396da307c30321b660e41bf1e99fd820e571690e Mon Sep 17 00:00:00 2001 From: Wilson Silva Date: Mon, 23 Oct 2023 16:40:37 +0700 Subject: [PATCH] Add shapes following eyes example --- examples/README.md | 1 + examples/shapes/shapes_following_eyes.png | Bin 0 -> 16169 bytes examples/shapes/shapes_following_eyes.rb | 92 ++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 examples/shapes/shapes_following_eyes.png create mode 100644 examples/shapes/shapes_following_eyes.rb diff --git a/examples/README.md b/examples/README.md index 1c3cb13..730d805 100644 --- a/examples/README.md +++ b/examples/README.md @@ -78,6 +78,7 @@ Examples using raylib shapes drawing functionality. | 32 | [shapes_bouncing_ball](shapes/shapes_bouncing_ball.rb) | shapes_bouncing_ball | ⭐️☆☆☆ | 2.5 | 2.5 | [Ray](https://github.com/raysan5) | | 33 | [shapes_colors_palette](shapes/shapes_colors_palette.rb) | shapes_colors_palette | ⭐️⭐️☆☆ | 1.0 | 2.5 | [Ray](https://github.com/raysan5) | | 38 | [shapes_collision_area](shapes/shapes_collision_area.rb) | shapes_collision_area | ⭐️⭐️☆☆ | 2.5 | 2.5 | [Ray](https://github.com/raysan5) | +| 39 | [shapes_following_eyes](shapes/shapes_following_eyes.rb) | shapes_following_eyes | ⭐️⭐️☆☆ | 2.5 | 2.5 | [Ray](https://github.com/raysan5) | | 40 | [shapes_easings_ball_anim](shapes/shapes_easings_ball_anim.rb) | shapes_easings_ball_anim | ⭐️⭐️☆☆ | 2.5 | 2.5 | [Ray](https://github.com/raysan5) | | 41 | [shapes_easings_box_anim](shapes/shapes_easings_box_anim.rb) | shapes_easings_box_anim | ⭐️⭐️☆☆ | 2.5 | 2.5 | [Ray](https://github.com/raysan5) | | 42 | [shapes_easings_rectangle_array](shapes/shapes_easings_rectangle_array.rb) | shapes_easings_rectangle_array | ⭐️⭐️⭐️☆ | 2.5 | 2.5 | [Ray](https://github.com/raysan5) | diff --git a/examples/shapes/shapes_following_eyes.png b/examples/shapes/shapes_following_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