Skip to content

Instantly share code, notes, and snippets.

View Juuro's full-sized avatar
🚵‍♀️

Sebastian Engel Juuro

🚵‍♀️
  • Kaiser X Labs, a company of Allianz
  • Stuttgart
  • X @Juuro
View GitHub Profile
@vukicevic
vukicevic / Draw Bitmap From Int Array
Last active October 31, 2023 08:50
Generate a monochrome bitmap image in JavaScript using a byte-array. The image is generated such that every bit in the array is shown as either a black (1) or white (0) pixel.
/**
* depth: 1 - monochrome
* 4 - 4-bit grayscale
* 8 - 8-bit grayscale
* 16 - 16-bit colour
* 32 - 32-bit colour
**/
function drawArray(arr, depth) {
var offset, height, data, image;
@clhenrick
clhenrick / README.md
Last active August 16, 2023 09:47
Data URI SVG icons with Leaflet