Test images

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2026-05-15 12:10:06 +0200
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2026-05-15 12:10:06 +0200
Commit 7fac070a7936e828f4c5aebd73f8b53d71c2cdbf (patch)
-rw-r--r-- README.md 3
-rw-r--r-- main.c3 5
-rw-r--r-- tests/cmyk_2000x1500_537kb.jpg bin 0 B -> 537.6 KB
-rw-r--r-- tests/color_test_800x600_118kb.jpg bin 0 B -> 118.7 KB
-rw-r--r-- tests/exif_rich_3000x2000_3.81mb.jpg bin 0 B -> 3.8 MB
-rw-r--r-- tests/grayscale_1600x1200_188kb.jpg bin 0 B -> 188.2 KB
-rw-r--r-- tests/landscape_hires_4000x2667_6.83mb.jpg bin 0 B -> 6.8 MB
-rw-r--r-- tests/large_banner_1920x600_124kb.jpg bin 0 B -> 124.0 KB
-rw-r--r-- tests/progressive_1920x1080_319kb.jpg bin 0 B -> 319.2 KB
-rw-r--r-- tests/social_square_1080x1080_235kb.jpg bin 0 B -> 235.8 KB
-rw-r--r-- tests/thumbnail_150x150_10.5kb.jpg bin 0 B -> 10.9 KB
-rw-r--r-- tests/upload_test_5000x3333_11.6mb.jpg bin 0 B -> 11.6 MB
-rw-r--r-- tests/web_optimized_1200x800_97kb.jpg bin 0 B -> 96.4 KB
13 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
  
1
## Test data
  
2
  
  
3
- https://sample-files.com/images/jpg/
diff --git a/main.c3 b/main.c3
...
54
  
54
  
55
    ctx.projects.push(p);
55
    ctx.projects.push(p);
56
  
56
  
  
57
    // Load test image
  
58
    rl::RLTexture2D img = rl::load_texture("tests/thumbnail_150x150_10.5kb.jpg");
  
59
    defer rl::unload_texture(img);
  
60
  
57
    while(!rl::window_should_close()) {
61
    while(!rl::window_should_close()) {
58
        // Handle camera movement.
62
        // Handle camera movement.
59
        if (rl::is_mouse_button_down(rl::RLMouseButton.MIDDLE)) {
63
        if (rl::is_mouse_button_down(rl::RLMouseButton.MIDDLE)) {
...
78
  
82
  
79
            rl::begin_mode2d(ctx.camera);
83
            rl::begin_mode2d(ctx.camera);
80
                rl::draw_text_ex(ctx.regular_font, "Pannable Canvas", { 0, 0 }, 42.0, 2.0, rl::RED);
84
                rl::draw_text_ex(ctx.regular_font, "Pannable Canvas", { 0, 0 }, 42.0, 2.0, rl::RED);
  
85
                rl::draw_texture(img, 200, 200, rl::WHITE);
81
            rl::end_mode2d();
86
            rl::end_mode2d();
82
        rl::end_drawing();
87
        rl::end_drawing();
83
    }
88
    }
...
diff --git a/tests/cmyk_2000x1500_537kb.jpg b/tests/cmyk_2000x1500_537kb.jpg
diff --git a/tests/color_test_800x600_118kb.jpg b/tests/color_test_800x600_118kb.jpg
diff --git a/tests/exif_rich_3000x2000_3.81mb.jpg b/tests/exif_rich_3000x2000_3.81mb.jpg
diff --git a/tests/grayscale_1600x1200_188kb.jpg b/tests/grayscale_1600x1200_188kb.jpg
diff --git a/tests/landscape_hires_4000x2667_6.83mb.jpg b/tests/landscape_hires_4000x2667_6.83mb.jpg
diff --git a/tests/large_banner_1920x600_124kb.jpg b/tests/large_banner_1920x600_124kb.jpg
diff --git a/tests/progressive_1920x1080_319kb.jpg b/tests/progressive_1920x1080_319kb.jpg
diff --git a/tests/social_square_1080x1080_235kb.jpg b/tests/social_square_1080x1080_235kb.jpg
diff --git a/tests/thumbnail_150x150_10.5kb.jpg b/tests/thumbnail_150x150_10.5kb.jpg
diff --git a/tests/upload_test_5000x3333_11.6mb.jpg b/tests/upload_test_5000x3333_11.6mb.jpg
diff --git a/tests/web_optimized_1200x800_97kb.jpg b/tests/web_optimized_1200x800_97kb.jpg