Elektrine lite

← Feed

@foxyoreos@gulp.cafe

Post #1662167

2026-04-17 10:28 UTC

But now I'd read a lot of code, and the obvious hacky nonsense solution which I had dismissed multiple times already was starting to look not that bad: move the reference image on the document and resize and rotate it every time the canvas view moves. This sounds really bad but.. I think it ends up being really clean? (with the caveat that I have not programmed or tested this yet).

Replies (1)

  • @foxyoreos@gulp.cafe 2026-04-17 10:32

    Reference images in Krita are just objects on a layer. So there's not a lot of math to this, I get a transform from Krita before the image draws, and I can kind of just.. save it. Like, I already have it when the thing renders, there's no reason to compute it twice. And there's a really lovely, wonderful set of methods that get called to update the reference image layer that has the transform that's about to get applied to each object, so..

    Open ##1662168