Find BooBoo on nooskewl.com!
BooBoo jpeg example

Topic: BooBoo

By tremblin
2026-02-19, 11:49pm
(0)
Avatar
Here is an example using the jpeg mod: link
Replies (3)
By tremblin
2026-03-04, 5:05am
Avatar
As you can see there is no difference in the BooBoo program except the .jpg extension. The draw function just stretches it to fit vertically:

var img
= img (image_load "Maggie.jpg")

function draw
{
        var w h
        explode (image_size img) w h
        var r
        = r (/ 360 h)
        var x
        = x (/ (- 640 (* r w)) 2)
        image_stretch_region img 255 255 255 255 0 0 w h x 0 (* r w) 360
}


Today I fixed linear filtering also, by generating mipmaps so you can get it to scale nicely.
By tremblin
2026-03-04, 5:33am
Avatar
You can put this in jpeg/data/shim5.json to enable linear filtering/mipmapping but you'll have to wait until the next version:

{
        "shim": {
                "gfx": {
                        "linear_filtering": true
                }
        }
}


You can also run with +linear-filtering but you'll still have to wait.
By tremblin
2026-03-04, 5:49am
Avatar
Here's what it looks like shrunk to minimum window size (400x225) with linear filtering