Skip to content

Instantly share code, notes, and snippets.

@olofsen
olofsen / rs.jl
Last active May 31, 2020 06:15
Reading, displaying, and converting a Sixel Graphics file with Julia
# The function ds() below reads a Sixel graphics file and creates an RGB Image,
# which can then be displayed and processed using the Image package.
# Public domain example code.
using Color, Images, ImageView
function vt340_palette()
pal = RGB[]
push!(pal, RGB(0.00, 0.00, 0.00))
push!(pal, RGB(0.20, 0.20, 0.80))