Functional Fills with Vecto

I’ve been wanting to do exclusive-or functional fill in vecto for a while, so tonight I delved in. I added a pixel function to the graphics state and kept the default as the normal alpha-blending it was already doing. The pixel function signature is a bit clumsy, but it was easy to knock up a… Continue reading Functional Fills with Vecto

The Hedgehog

The hedgehog is a noble beast; he keeps the garden clear Of slugs and snails and other pests throughout the temperate year. Just after dusk you’ll see him on his customary beat Hunting Lumbricus terrestris or some other juicy treat. Although he’s not the biggest or the fastest or most muscular, He’s the most learned… Continue reading The Hedgehog

Published
Categorized as Poetry

A bit of Pythagoras

Given Pythagorean triples that satisfy the Diophantine equation: a² + b² = c² where a, b and c share no common factors, one of a and b must be odd, the other must be even, and c is always odd. First, note that squares of even numbers are always divisible by 4. [Lemma 1] (2n)²… Continue reading A bit of Pythagoras

Published
Categorized as Maths

On the Benefits of Showering

From time to time when I’m perplexed Or by a tricky problem vexed; A cipher that just will not yield But keeps its mystery concealed, I find I have a last resort Before cerebral fuel runs short: I open up the bathroom door And step onto the tiled floor. The whirring fan, the gurgling drain,… Continue reading On the Benefits of Showering

Published
Categorized as Poetry

Ellipses & Splines again

After some code cleanup and generalisation, I can now modulate whole splines onto ellipses and onto splines themselves. Here is my simple 4-bezier spline modulated onto an ellipse: And onto itself: Repeatedly modulating a spline onto itself while varying the frequency parameter leads to some interesting and fractal patterns. Nice.

LA Moments

Heading west on Sunset (that winding bit just north of the Los Angeles Country Club), when a charcoal grey Lamborghini Murcielago pulls out just ahead of me. Nice. It made a lovely sound and went from zero to 40 in about 2 seconds. Really expensive cars tend to actually be driven well (unlike the run-of-the-mill… Continue reading LA Moments

Splines and modulation

My efforts to equally subdivide a curve along its length have, in part, been leading to this. First, I extended the sampling to work with splines (made up of cubic Bézier curves with c1 continuity). This shot shows 4 curves put together to form a spline: Next, I wrote some code to modulate a curve… Continue reading Splines and modulation