diff --git a/public/usage-examples/graphics/bitmap_bounding_circle-1-example-oop.cs b/public/usage-examples/graphics/bitmap_bounding_circle-1-example-oop.cs new file mode 100644 index 000000000..ff9794018 --- /dev/null +++ b/public/usage-examples/graphics/bitmap_bounding_circle-1-example-oop.cs @@ -0,0 +1,33 @@ +using SplashKitSDK; + +namespace BitmapBoundingCircleExample +{ + public class Program + { + public static void Main() + { + SplashKit.OpenWindow("Bitmap Bounding Circle", 800, 600); + + Bitmap vertical_bitmap = SplashKit.LoadBitmap("vertical_bitmap", "image1.jpeg"); + Bitmap horizontal_bitmap = SplashKit.LoadBitmap("horizontal_bitmap", "image2.png"); + + Circle vert_bitmap_circle = SplashKit.BitmapBoundingCircle(vertical_bitmap, SplashKit.PointAt(210, 210)); + Circle hori_bitmap_circle = SplashKit.BitmapBoundingCircle(horizontal_bitmap, SplashKit.PointAt(580, 400)); + + while (!SplashKit.QuitRequested()) + { + SplashKit.ProcessEvents(); + SplashKit.ClearScreen(Color.White); + + SplashKit.DrawBitmap(vertical_bitmap, 141, 60); + SplashKit.DrawBitmap(horizontal_bitmap, 480, 344); + + SplashKit.DrawCircle(Color.Black, vert_bitmap_circle); + SplashKit.DrawCircle(Color.Black, hori_bitmap_circle); + + SplashKit.RefreshScreen(); + } + SplashKit.CloseAllWindows(); + } + } +} \ No newline at end of file diff --git a/public/usage-examples/graphics/bitmap_bounding_circle-1-example-resources.zip b/public/usage-examples/graphics/bitmap_bounding_circle-1-example-resources.zip new file mode 100644 index 000000000..73d1efd74 Binary files /dev/null and b/public/usage-examples/graphics/bitmap_bounding_circle-1-example-resources.zip differ diff --git a/public/usage-examples/graphics/bitmap_bounding_circle-1-example-top-level.cs b/public/usage-examples/graphics/bitmap_bounding_circle-1-example-top-level.cs new file mode 100644 index 000000000..31b08ca73 --- /dev/null +++ b/public/usage-examples/graphics/bitmap_bounding_circle-1-example-top-level.cs @@ -0,0 +1,25 @@ +using SplashKitSDK; +using static SplashKitSDK.SplashKit; + +OpenWindow("Bitmap Bounding Circle", 800, 600); + +Bitmap vertical_bitmap = LoadBitmap("vertical_bitmap", "image1.jpeg"); +Bitmap horizontal_bitmap = LoadBitmap("horizontal_bitmap", "image2.png"); + +Circle vert_bitmap_circle = BitmapBoundingCircle(vertical_bitmap, PointAt(210, 210)); +Circle hori_bitmap_circle = BitmapBoundingCircle(horizontal_bitmap, PointAt(580, 400)); + +while (!QuitRequested()) +{ + ProcessEvents(); + ClearScreen(ColorWhite()); + + DrawBitmap(vertical_bitmap, 141, 60); + DrawBitmap(horizontal_bitmap, 480, 344); + + DrawCircle(ColorBlack(), vert_bitmap_circle); + DrawCircle(ColorBlack(), hori_bitmap_circle); + + RefreshScreen(); +} +CloseAllWindows(); \ No newline at end of file diff --git a/public/usage-examples/graphics/bitmap_bounding_circle-1-example.cpp b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.cpp new file mode 100644 index 000000000..1ee9fb3e5 --- /dev/null +++ b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.cpp @@ -0,0 +1,28 @@ +#include "splashkit.h" + +int main() +{ + open_window("Bitmap Bounding Circle", 800, 600); + + bitmap vertical_bitmap = load_bitmap("vertical_bitmap", "image1.jpeg"); + bitmap horizontal_bitmap = load_bitmap("horizontal_bitmap", "image2.png"); + + circle vert_bitmap_circle = bitmap_bounding_circle(vertical_bitmap, point_at(210, 210)); + circle hori_bitmap_circle = bitmap_bounding_circle(horizontal_bitmap, point_at(580, 400)); + + while (!quit_requested()) + { + process_events(); + clear_screen(color_white()); + + draw_bitmap(vertical_bitmap, 141, 60); + draw_bitmap(horizontal_bitmap, 480, 344); + + draw_circle(color_black(), vert_bitmap_circle); + draw_circle(color_black(), hori_bitmap_circle); + + refresh_screen(); + } + close_all_windows(); + return 0; +} \ No newline at end of file diff --git a/public/usage-examples/graphics/bitmap_bounding_circle-1-example.png b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.png new file mode 100644 index 000000000..e49f43534 Binary files /dev/null and b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.png differ diff --git a/public/usage-examples/graphics/bitmap_bounding_circle-1-example.py b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.py new file mode 100644 index 000000000..1c0b5d3ac --- /dev/null +++ b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.py @@ -0,0 +1,23 @@ +from splashkit import * + +open_window("Bitmap Bounding Circle", 800, 600) + +vertical_bitmap = load_bitmap("vertical_bitmap", "image1.jpeg") +horizontal_bitmap = load_bitmap("horizontal_bitmap", "image2.png") + +vert_bitmap_circle = bitmap_bounding_circle(vertical_bitmap, point_at(210, 210)) +hori_bitmap_circle = bitmap_bounding_circle(horizontal_bitmap, point_at(580, 400)) + +while not quit_requested(): + process_events() + clear_screen_to_white() + + draw_bitmap(vertical_bitmap, 141, 60) + draw_bitmap(horizontal_bitmap, 480, 344) + + draw_circle_record(color_black(), vert_bitmap_circle) + draw_circle_record(color_black(), hori_bitmap_circle) + + refresh_screen() + +close_all_windows() \ No newline at end of file diff --git a/public/usage-examples/graphics/bitmap_bounding_circle-1-example.txt b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.txt new file mode 100644 index 000000000..5f0670a83 --- /dev/null +++ b/public/usage-examples/graphics/bitmap_bounding_circle-1-example.txt @@ -0,0 +1,5 @@ +Draw bitmaps surrounded by circles + +:::note +To test this example code you can download these [**Resources**](/usage-examples/graphics/bitmap_bounding_circle-1-example-resources.zip). +::: \ No newline at end of file diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index c6aae2879..875005019 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -38,29 +38,20 @@ bash <(curl -s https://raw.githubusercontent.com/splashkit/skm/master/install-sc - SplashKit SDK offers seamless integration with your existing development - environment, making it easy to incorporate powerful graphics and game - development capabilities into your projects. + SplashKit provides developers with an easy integration method to add + graphics and game development capabilities through a straightforward setup process. - Develop games and applications that run on multiple platforms, including - Windows, macOS, Linux, and a few more using a single codebase with SplashKit - SDK. Supports **C++, C# and python** . + Develop games and apps for Windows, macOS, Linux, and more using a single SplashKit codebase. Platform supports development with **C++, C# and Python** programming language . - Create stunning visuals and captivating animations with SplashKit's - comprehensive set of graphics and animation tools. Bring your ideas to life - with ease. + SplashKit provides users with a complete set of graphics and animation tools to create professional-looking visuals and smooth animations. - Whether you're a beginner or an experienced game developer, SplashKit SDK - provides a user-friendly interface and a wide range of features to simplify - the game development process. + The SplashKit SDK provides developers with an easy-to-use interface and robust capabilities which enable game development at all skill levels. - Access detailed documentation and tutorials to help you get started quickly - and make the most out of SplashKit SDK. Learn at your own pace and explore - the vast possibilities. + The SplashKit SDK provides complete documentation and tutorial content to enable fast development and independent learning of all available features.