Palettes / Steam Lords

Steam Lords by Slynyrd

Created for Patreon.

🦀 Rust

#![no_std]
#![no_main]
use firefly_rust::*;

#[unsafe(no_mangle)]
extern "C" fn boot() {
    set_colors();
}

fn set_colors() {
    // https://lospec.com/palette-list/steam-lords
    set_color(Color::from(1), RGB::new(0x21, 0x3b, 0x25));
    set_color(Color::from(2), RGB::new(0x3a, 0x60, 0x4a));
    set_color(Color::from(3), RGB::new(0x4f, 0x77, 0x54));
    set_color(Color::from(4), RGB::new(0xa1, 0x9f, 0x7c));
    set_color(Color::from(5), RGB::new(0x77, 0x74, 0x4f));
    set_color(Color::from(6), RGB::new(0x77, 0x5c, 0x4f));
    set_color(Color::from(7), RGB::new(0x60, 0x3b, 0x3a));
    set_color(Color::from(8), RGB::new(0x3b, 0x21, 0x37));
    set_color(Color::from(9), RGB::new(0x17, 0x0e, 0x19));
    set_color(Color::from(10), RGB::new(0x2f, 0x21, 0x3b));
    set_color(Color::from(11), RGB::new(0x43, 0x3a, 0x60));
    set_color(Color::from(12), RGB::new(0x4f, 0x52, 0x77));
    set_color(Color::from(13), RGB::new(0x65, 0x73, 0x8c));
    set_color(Color::from(14), RGB::new(0x7c, 0x94, 0xa1));
    set_color(Color::from(15), RGB::new(0xa0, 0xb9, 0xba));
    set_color(Color::from(16), RGB::new(0xc0, 0xd1, 0xcc));
}

🏃 Go

package main

import "github.com/firefly-zero/firefly-go/firefly"

func init() {
    firefly.Boot = boot
}

func boot() {
    setColors()
}

func setColors() {
    // https://lospec.com/palette-list/steam-lords
    firefly.SetColor(1, firefly.RGB{R: 0x21, G: 0x3b, B: 0x25})
    firefly.SetColor(2, firefly.RGB{R: 0x3a, G: 0x60, B: 0x4a})
    firefly.SetColor(3, firefly.RGB{R: 0x4f, G: 0x77, B: 0x54})
    firefly.SetColor(4, firefly.RGB{R: 0xa1, G: 0x9f, B: 0x7c})
    firefly.SetColor(5, firefly.RGB{R: 0x77, G: 0x74, B: 0x4f})
    firefly.SetColor(6, firefly.RGB{R: 0x77, G: 0x5c, B: 0x4f})
    firefly.SetColor(7, firefly.RGB{R: 0x60, G: 0x3b, B: 0x3a})
    firefly.SetColor(8, firefly.RGB{R: 0x3b, G: 0x21, B: 0x37})
    firefly.SetColor(9, firefly.RGB{R: 0x17, G: 0x0e, B: 0x19})
    firefly.SetColor(10, firefly.RGB{R: 0x2f, G: 0x21, B: 0x3b})
    firefly.SetColor(11, firefly.RGB{R: 0x43, G: 0x3a, B: 0x60})
    firefly.SetColor(12, firefly.RGB{R: 0x4f, G: 0x52, B: 0x77})
    firefly.SetColor(13, firefly.RGB{R: 0x65, G: 0x73, B: 0x8c})
    firefly.SetColor(14, firefly.RGB{R: 0x7c, G: 0x94, B: 0xa1})
    firefly.SetColor(15, firefly.RGB{R: 0xa0, G: 0xb9, B: 0xba})
    firefly.SetColor(16, firefly.RGB{R: 0xc0, G: 0xd1, B: 0xcc})
}

⚡️ Zig

const ff = @import("firefly");

pub export fn update() void {
    setColors()
}

fn setColors() void {
    // https://lospec.com/palette-list/steam-lords
    ff.setColor(@enumFromInt(1), ff.RGB{.r = 0x21, .g = 0x3b, .b = 0x25});
    ff.setColor(@enumFromInt(2), ff.RGB{.r = 0x3a, .g = 0x60, .b = 0x4a});
    ff.setColor(@enumFromInt(3), ff.RGB{.r = 0x4f, .g = 0x77, .b = 0x54});
    ff.setColor(@enumFromInt(4), ff.RGB{.r = 0xa1, .g = 0x9f, .b = 0x7c});
    ff.setColor(@enumFromInt(5), ff.RGB{.r = 0x77, .g = 0x74, .b = 0x4f});
    ff.setColor(@enumFromInt(6), ff.RGB{.r = 0x77, .g = 0x5c, .b = 0x4f});
    ff.setColor(@enumFromInt(7), ff.RGB{.r = 0x60, .g = 0x3b, .b = 0x3a});
    ff.setColor(@enumFromInt(8), ff.RGB{.r = 0x3b, .g = 0x21, .b = 0x37});
    ff.setColor(@enumFromInt(9), ff.RGB{.r = 0x17, .g = 0x0e, .b = 0x19});
    ff.setColor(@enumFromInt(10), ff.RGB{.r = 0x2f, .g = 0x21, .b = 0x3b});
    ff.setColor(@enumFromInt(11), ff.RGB{.r = 0x43, .g = 0x3a, .b = 0x60});
    ff.setColor(@enumFromInt(12), ff.RGB{.r = 0x4f, .g = 0x52, .b = 0x77});
    ff.setColor(@enumFromInt(13), ff.RGB{.r = 0x65, .g = 0x73, .b = 0x8c});
    ff.setColor(@enumFromInt(14), ff.RGB{.r = 0x7c, .g = 0x94, .b = 0xa1});
    ff.setColor(@enumFromInt(15), ff.RGB{.r = 0xa0, .g = 0xb9, .b = 0xba});
    ff.setColor(@enumFromInt(16), ff.RGB{.r = 0xc0, .g = 0xd1, .b = 0xcc});
}

🐀 C

#include "./vendor/firefly/firefly.c"

BOOT void boot()
{
    set_colors();
}

void set_colors()
{
    // https://lospec.com/palette-list/steam-lords
    RGB color1 = {0x21, 0x3b, 0x25};
    set_color(1, color1);
    RGB color2 = {0x3a, 0x60, 0x4a};
    set_color(2, color2);
    RGB color3 = {0x4f, 0x77, 0x54};
    set_color(3, color3);
    RGB color4 = {0xa1, 0x9f, 0x7c};
    set_color(4, color4);
    RGB color5 = {0x77, 0x74, 0x4f};
    set_color(5, color5);
    RGB color6 = {0x77, 0x5c, 0x4f};
    set_color(6, color6);
    RGB color7 = {0x60, 0x3b, 0x3a};
    set_color(7, color7);
    RGB color8 = {0x3b, 0x21, 0x37};
    set_color(8, color8);
    RGB color9 = {0x17, 0x0e, 0x19};
    set_color(9, color9);
    RGB color10 = {0x2f, 0x21, 0x3b};
    set_color(10, color10);
    RGB color11 = {0x43, 0x3a, 0x60};
    set_color(11, color11);
    RGB color12 = {0x4f, 0x52, 0x77};
    set_color(12, color12);
    RGB color13 = {0x65, 0x73, 0x8c};
    set_color(13, color13);
    RGB color14 = {0x7c, 0x94, 0xa1};
    set_color(14, color14);
    RGB color15 = {0xa0, 0xb9, 0xba};
    set_color(15, color15);
    RGB color16 = {0xc0, 0xd1, 0xcc};
    set_color(16, color16);
}

➕ C++

#include "./vendor/firefly/firefly.c"

BOOT void boot()
{
    set_colors();
}

void set_colors()
{
    // https://lospec.com/palette-list/steam-lords
    set_color(1, {0x21, 0x3b, 0x25});
    set_color(2, {0x3a, 0x60, 0x4a});
    set_color(3, {0x4f, 0x77, 0x54});
    set_color(4, {0xa1, 0x9f, 0x7c});
    set_color(5, {0x77, 0x74, 0x4f});
    set_color(6, {0x77, 0x5c, 0x4f});
    set_color(7, {0x60, 0x3b, 0x3a});
    set_color(8, {0x3b, 0x21, 0x37});
    set_color(9, {0x17, 0x0e, 0x19});
    set_color(10, {0x2f, 0x21, 0x3b});
    set_color(11, {0x43, 0x3a, 0x60});
    set_color(12, {0x4f, 0x52, 0x77});
    set_color(13, {0x65, 0x73, 0x8c});
    set_color(14, {0x7c, 0x94, 0xa1});
    set_color(15, {0xa0, 0xb9, 0xba});
    set_color(16, {0xc0, 0xd1, 0xcc});
}

🐰 MoonBit

///|
using @firefly {type Color, type RGB}

///|
pub fn boot() -> Unit {
  set_colors()
}

///|
fn set_colors() -> Unit {
  // https://lospec.com/palette-list/steam-lords
  @firefly.set_color(Color::from_int(1), RGB::new(0x21, 0x3b, 0x25));
  @firefly.set_color(Color::from_int(2), RGB::new(0x3a, 0x60, 0x4a));
  @firefly.set_color(Color::from_int(3), RGB::new(0x4f, 0x77, 0x54));
  @firefly.set_color(Color::from_int(4), RGB::new(0xa1, 0x9f, 0x7c));
  @firefly.set_color(Color::from_int(5), RGB::new(0x77, 0x74, 0x4f));
  @firefly.set_color(Color::from_int(6), RGB::new(0x77, 0x5c, 0x4f));
  @firefly.set_color(Color::from_int(7), RGB::new(0x60, 0x3b, 0x3a));
  @firefly.set_color(Color::from_int(8), RGB::new(0x3b, 0x21, 0x37));
  @firefly.set_color(Color::from_int(9), RGB::new(0x17, 0x0e, 0x19));
  @firefly.set_color(Color::from_int(10), RGB::new(0x2f, 0x21, 0x3b));
  @firefly.set_color(Color::from_int(11), RGB::new(0x43, 0x3a, 0x60));
  @firefly.set_color(Color::from_int(12), RGB::new(0x4f, 0x52, 0x77));
  @firefly.set_color(Color::from_int(13), RGB::new(0x65, 0x73, 0x8c));
  @firefly.set_color(Color::from_int(14), RGB::new(0x7c, 0x94, 0xa1));
  @firefly.set_color(Color::from_int(15), RGB::new(0xa0, 0xb9, 0xba));
  @firefly.set_color(Color::from_int(16), RGB::new(0xc0, 0xd1, 0xcc));
}

🌙 Lua

function boot()
  set_colors()
end

function set_colors()
  -- https://lospec.com/palette-list/steam-lords
  firefly.set_color(1, {r=0x21, g=0x3b, b=0x25});
  firefly.set_color(2, {r=0x3a, g=0x60, b=0x4a});
  firefly.set_color(3, {r=0x4f, g=0x77, b=0x54});
  firefly.set_color(4, {r=0xa1, g=0x9f, b=0x7c});
  firefly.set_color(5, {r=0x77, g=0x74, b=0x4f});
  firefly.set_color(6, {r=0x77, g=0x5c, b=0x4f});
  firefly.set_color(7, {r=0x60, g=0x3b, b=0x3a});
  firefly.set_color(8, {r=0x3b, g=0x21, b=0x37});
  firefly.set_color(9, {r=0x17, g=0x0e, b=0x19});
  firefly.set_color(10, {r=0x2f, g=0x21, b=0x3b});
  firefly.set_color(11, {r=0x43, g=0x3a, b=0x60});
  firefly.set_color(12, {r=0x4f, g=0x52, b=0x77});
  firefly.set_color(13, {r=0x65, g=0x73, b=0x8c});
  firefly.set_color(14, {r=0x7c, g=0x94, b=0xa1});
  firefly.set_color(15, {r=0xa0, g=0xb9, b=0xba});
  firefly.set_color(16, {r=0xc0, g=0xd1, b=0xcc});
end