every wanna golf your css color codes? yeah, me neither. just use my postcss plugin to do it for you
https://github.com/xero/postcss-color-golf

https://npmjs.com/package/postcss-color-golf

#npm #js #postcss #css #scss #sass #style #css3 #optomization #golf #codegolf

GitHub - xero/postcss-color-golf: A PostCSS plugin that minifies CSS colors with aggressive optimizations: shortens hex codes, converts RGB/A to hex, and replaces color names with shortest equivalents.

A PostCSS plugin that minifies CSS colors with aggressive optimizations: shortens hex codes, converts RGB/A to hex, and replaces color names with shortest equivalents. - xero/postcss-color-golf

GitHub

Ich folge zu wenigen kreativen Accounts. Ich suche coole Software Spielereien, weniger klassische Kunst oder Hardware. Leute die Neues ausprobieren und Sachen aus Spaß programmieren, ohne konkrete Probleme damit lösen zu wollen. Code Golf, Experimente, ultra detaillierte Analysen und Deep-dives. Vorschläge? 

#codegolf #software #foss #creativity #noai

Chessboard Color Challenge in BASIC - The Oasis BBS

Robin solves the Chessboard Color Challenge using Commodore 64 BASIC—pushing code size to a retro-inspired 57-character limit.

The Oasis BBS
rose quartz + DOF #glsl #generative #tinycode #codegolf
vec3 q=vec3(0,0,7e3),v=FC.rgb-r.xyx*.5,p,u=sin(FC.rgb*PI);v-=u*4.;for(float i,s;i++<67.;s=abs(2e3-length(p.yz))-3e1,q+=sin(i)+v*.7/r.x*s,o+=exp(-s*s/vec4(4,1,2,1))/i)for(p=q+u*4e4/r.x,s=7e3;9.<s;p=p.zxy+s*.02*sin(p/s*17.),s*=.8)p.zx*=rotate2D(s+(s==7e3?t*.2:0.));

More #codegolf #programming - this time it's for some space invader animations. (140 characters was not enough to make the game interactive)

https://www.dwitter.net/d/33772

Space Invaders! by marquisdegeek | Dwitter

✨ Behold the groundbreaking revelation: you can animate dots with simple math! 🤯 Code golfing has never been so exhilarating, or so... dotty. 🎯 Just when you thought life couldn't get simpler, here come the 16x16 dots to prove you wrong. 🎨✨
https://tixy.land #animation #math #codegolf #creative #coding #dotart #HackerNews #ngated
(t,i,x,y) => "creative code golfing"

A minimalist coding environment. Control 16x16 points with a single JavaScript function.

So I watched this video https://www.youtube.com/watch?v=RcVA8Nj6HEo

And I decided to check what "plus times plus" actually computes. Luckily, I have my own #LambdaCalculus compiling language, #Lamber f https://github.com/aartaka/lamber

So I ran "* + + 1 2 3" and got... 36. So a number from a #math operator applied to other operators and then to data. Which seems like a nice basis for math conspiracy theories. How many of the basic arithmetic functions can we combine, and to what result? Might even end up with lambda calculus #codegolf things, like this division function John Tromp listed with attribution to Bertram Felgenhauer:

def div fn (dividend divisor)
local F = fn (m f t)
m T' (fn (c) f : c t) id .
int (fn (f x)
(int dividend) T' (K x) ((int dividend) (F (int divisor) f) x)) .

Adapted to Lamber, of course. But not any more readable than it used to be. Which is a cool feature of LC—you can apply anything to anything and get something as a result, albeit with a really confusing program flow.

I'm that close to learning some logical language and trying to devise mine, with lambda diagrams as concept ideograms and function application as the only syntactic relation. Yeah I know I'm going crazy, but at least it's fun.

#theObservatory

What is PLUS times PLUS?

YouTube
Results 2025 | homeputerium

homeputerium

JavaScript piano one-liner :) #codegolf

for(p='',y=5;y--;p+="\n")for(x=80;x--;)p+=x&1?5-y<4*((59&(1<<((x>>1)%7)))>0)|0?'#':'|':' ';console.log(p)

Simplest way to draw HAKMEM 149 based structure without offsetting / adjusting the seeds, turns out that using one unsigned shift is the 🗝️

Loop is optional.

Two versions for the two different algorithm precisions. Adapted for 512x512.

Code is for a grey scale one but i made a colored one based on exponentially mapped iteration count (classic way to color fractals), this somehow require to offset coordinates for nice colors.

#fractal #codegolf #sizecoding #algorithm #computergraphics