Rasmus​.krats​.se

Denna sida på svenska

Posts tagged “javascript”

Reminiscing this and that, on the web since 1994.

Light or dark?

Posted 2022-05-16 22:11. Tagged , , , , .

I’ve had a light and a dark theme on this site since I switch from python to rust. But until now I have only used css @media selection to enable the dark theme, so it hasn’t been very discoverable. If you have a browser that supports the prefers-color-scheme query and you have found that setting and enabled dark mode, you have seen this site in the dark theme (and may not know that it had a light theme), otherwise you have seen the site in the light theme (and not known about the dark).

Read whole Light or dark?.

Julia fractals in Rust wasm

Posted 2019-07-26 19:12. Tagged , , , , .

I like to write programs to render fractals, and especially Julia set fractals. I also like the Rust programming language. Among other advantages it happens to be great for compiling to wasm, the new format for executing code in a web browser. And I like to code stuff for the webb. So how come I haven’t written a wasm Julia renderer in Rust yet?

Well, now I have.

Read whole Julia fractals in Rust wasm with 2 comments.

A simple and usable lightbox

Posted 2012-01-13 20:50. Tagged , , , , , , .

I have written a new jQuery plugin. It is a lightbox with focus on simplicity and usability. I call it kratsbox, and it’s availiable on github. Instructions for use are in the readme at the github page.

Read whole A simple and usable lightbox with 1 comments.