DPF validation. What's not to like?

#golang #foss #dpf #pixelart #pixmap #bdf #DeluxeDraw

Next step completed, my #TextBox widget now supports mouse input: click, doubleclick and drag 🥳.

Not so nice: With overall more drawing operations, I see #flicker happening more often 😒. Did some research already, it seems with #XRender, the only way to avoid it would be to render to some #pixmap (instead of the window directly) and use #XPresent to get it on the screen? @thomasadam do you know an "easier" way? 🙈

Started work on some TextRenderer class/module.

Should in the end handle everything to get an #X11 #pixmap from some #utf8 text. For now, just runs #harfbuzz shaping and calculates the resulting pixel size in a background thread.

I have no idea whether my calculations are really correct. But at least, the result for a "Hello, World!" text looks somewhat plausible 😅

https://github.com/Zirias/xmoji/commit/439d0dfee46a4f40a671634a0f18d9c9accbb543

TextRenderer: WIP, render some text · Zirias/xmoji@439d0df

For now, asynchronously shape given text with harfbuzz and calculate pixel size of the result.

GitHub

I have started a set of #pixmap = #bitmap manipulation tasks (since when do we pretend a color image is a ‘bitmap’?) with an #ATS contribution to the very first of the tasks:

https://rosettacode.org/wiki/Bitmap#ATShttps://rosettacode.org/wiki/Bitmap#ATS

I went back to doing things at a low level, which my readers surely will appreciate. So the code is lengthy, given what is being done.

And safety is important, so notice that if a ‘load’ fails you still get valid image data (an image filled with one color).

#ATSlang

Bitmap

Show a basic storage type to handle a simple RGB raster graphics image, and some primitive associated functions. If possible provide a function to allocate an uninitialised...

Rosetta Code

The Coffee Cup Abstraction

(A hand-drawn Pixmap/Level Of Detail exercise)

#pencildrawing #pencilsketch #drawing #pixmap #pixel #bitmap