back

Manageable bites

2022-11-29

2 minute read

Conseguí o borrão que eu queria

As regularly happens the little gnawing distractions that appear bite sized draw me back in, and luckily this one actually was bite sized. I found out the js canvas has built in filters that are more performant than Ronin's Convolve function, and wrote a new function for Ronin's library to run them within a given rectangle:

  // canvas filters
  this.canvasfilter = (ff, rect) =>{
    const hiddenCanvas = document.createElement("canvas")
    const hctx = hiddenCanvas.getContext("2d")
    hiddenCanvas.height = client.surface.el.height
    hiddenCanvas.width = client.surface.el.width
    hctx.filter = ff
    hctx.drawImage(client.surface.el, 0,0)
    hctx.filter = "none"
    client.surface.context.drawImage(hiddenCanvas, rect.x, rect.y, rect.w, rect.h, rect.x, rect.y, rect.w, rect.h)
    return rect
  }

And here is the function in use, in Ronin:

(clear)

(resize 1000 1000)
(import "budget.png")

(def blurr "blur(10px)")
(defn blr (r)(canvasfilter blurr r))

(blr (rect 136 38 114 856))
(blr (rect 818 68 144 154))
(blr (rect 828 276 118 42))
(blr (rect 816 374 134 154))
(blr (rect 250 370 192 46))

And here's the same budget as yesterday, with (I believe) a better blur: a blurred out spending review spreadsheet

a little doodling

I expected to spend an hour doing cartoon work, but ended up spending 2 hours and another hour distracted. Drawings of hippos, and some other animals. The hippo is the biggest challenge of the 3 funny drawings, but drawing in general is a challenge. I haven't drawn nearly enough, I don't have the speed or confidence of line I really want. I'm also not using the tablet anymore, because I don't have photoshop on my laptop, but even as I type this I think I ought to seek out a painting program and dust off the old wacom + pray 🙏 it's compatible with this machine.

The next drawing challenges after the hippo are:

Leek and potato soup

I made a humble and fairly boring soup, over-watered it or under-seasoned it I think, but no matter. Sitting about all night has probably improved it's flavour. I also ordered premade chicken schnitzels, $2.50 a pop, and I'm having a chicken sandwhich with sprouts alongside a bowl of soup for dinner for the next few days.

what else?

listening to

Rigoberta Bandini - LA EMPERATRIZ (Full Album)

questions