zuloofaith.blogg.se

Photosounder spira
Photosounder spira





photosounder spira

Vector font generation, vector text rendering and a built-in minimalistic vector font that is always available. Geometric functions used for computing intersections between lines, shortest the distance of a point to a line or to limit a line to a bounding boxīlending modes like additive, subtractive, multiplicative blending and alpha blendingīlitting of a buffer onto another, like for displaying a spriteĪn original Hue-Saturation-Luminance colour space with a Luminance that is about perceptually correct (unlike the 1931 CIE XYZ colour space which gets the weights of each colour blatantly wrong) which is used for HSL to RGB conversion and for bringing out of gamut colours (such as colours that have components brighter than 1.0) to the most appropriate representable colour I also implemented the inverse of the error function and the integral of the error function.įunctions to draw lines, points, circles, roundrects and gradients, all antialiased with Gaussian filteringįunctions to convert from sRGB to linear RGB for loading images and to convert from linear RGB to sRGB with optional Gaussian dithering for displaying

photosounder spira

Original math functions such as a short Gaussian function and its integral, the short error function which I now use for filter design. Some are implemented using linear interpolation, segmented quadratic polynomial approximation or simple lookup, which offers different levels of speed/precision/memory usage tradeoffs.įast polynomial lookup table-based floating-point approximations for cos, log2, exp2, pow and others. Fast lookup table-based fixed-point arithmetic approximations for sqrt, hypot, log2, exp2, pow, cos, atan2 (both noting angles in turns, not radians), the Gaussian function ( e -x²) and the raised error function ( 0.5+0.5erf(x)).







Photosounder spira