This is a palette inspired by the Dark Seed game and Giger's Alien
🦀 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/darkseed-16
set_color(Color::from(1), RGB::new(0x00, 0x00, 0x00));
set_color(Color::from(2), RGB::new(0x00, 0x14, 0x18));
set_color(Color::from(3), RGB::new(0x00, 0x20, 0x24));
set_color(Color::from(4), RGB::new(0x00, 0x2c, 0x38));
set_color(Color::from(5), RGB::new(0x14, 0x34, 0x44));
set_color(Color::from(6), RGB::new(0x44, 0x34, 0x44));
set_color(Color::from(7), RGB::new(0x58, 0x3c, 0x48));
set_color(Color::from(8), RGB::new(0x6c, 0x4c, 0x44));
set_color(Color::from(9), RGB::new(0x80, 0x60, 0x58));
set_color(Color::from(10), RGB::new(0x6c, 0x70, 0x6c));
set_color(Color::from(11), RGB::new(0x88, 0x80, 0x78));
set_color(Color::from(12), RGB::new(0xa4, 0x94, 0x84));
set_color(Color::from(13), RGB::new(0xc4, 0xac, 0x9c));
set_color(Color::from(14), RGB::new(0xd8, 0xb0, 0xa8));
set_color(Color::from(15), RGB::new(0xec, 0xd4, 0xd0));
set_color(Color::from(16), RGB::new(0xfc, 0xfc, 0xfc));
}
🏃 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/darkseed-16
firefly.SetColor(1, firefly.RGB{R: 0x00, G: 0x00, B: 0x00})
firefly.SetColor(2, firefly.RGB{R: 0x00, G: 0x14, B: 0x18})
firefly.SetColor(3, firefly.RGB{R: 0x00, G: 0x20, B: 0x24})
firefly.SetColor(4, firefly.RGB{R: 0x00, G: 0x2c, B: 0x38})
firefly.SetColor(5, firefly.RGB{R: 0x14, G: 0x34, B: 0x44})
firefly.SetColor(6, firefly.RGB{R: 0x44, G: 0x34, B: 0x44})
firefly.SetColor(7, firefly.RGB{R: 0x58, G: 0x3c, B: 0x48})
firefly.SetColor(8, firefly.RGB{R: 0x6c, G: 0x4c, B: 0x44})
firefly.SetColor(9, firefly.RGB{R: 0x80, G: 0x60, B: 0x58})
firefly.SetColor(10, firefly.RGB{R: 0x6c, G: 0x70, B: 0x6c})
firefly.SetColor(11, firefly.RGB{R: 0x88, G: 0x80, B: 0x78})
firefly.SetColor(12, firefly.RGB{R: 0xa4, G: 0x94, B: 0x84})
firefly.SetColor(13, firefly.RGB{R: 0xc4, G: 0xac, B: 0x9c})
firefly.SetColor(14, firefly.RGB{R: 0xd8, G: 0xb0, B: 0xa8})
firefly.SetColor(15, firefly.RGB{R: 0xec, G: 0xd4, B: 0xd0})
firefly.SetColor(16, firefly.RGB{R: 0xfc, G: 0xfc, B: 0xfc})
}
⚡️ Zig
const ff = @import("firefly");
pub export fn update() void {
setColors()
}
fn setColors() void {
// https://lospec.com/palette-list/darkseed-16
ff.setColor(@enumFromInt(1), ff.RGB{.r = 0x00, .g = 0x00, .b = 0x00});
ff.setColor(@enumFromInt(2), ff.RGB{.r = 0x00, .g = 0x14, .b = 0x18});
ff.setColor(@enumFromInt(3), ff.RGB{.r = 0x00, .g = 0x20, .b = 0x24});
ff.setColor(@enumFromInt(4), ff.RGB{.r = 0x00, .g = 0x2c, .b = 0x38});
ff.setColor(@enumFromInt(5), ff.RGB{.r = 0x14, .g = 0x34, .b = 0x44});
ff.setColor(@enumFromInt(6), ff.RGB{.r = 0x44, .g = 0x34, .b = 0x44});
ff.setColor(@enumFromInt(7), ff.RGB{.r = 0x58, .g = 0x3c, .b = 0x48});
ff.setColor(@enumFromInt(8), ff.RGB{.r = 0x6c, .g = 0x4c, .b = 0x44});
ff.setColor(@enumFromInt(9), ff.RGB{.r = 0x80, .g = 0x60, .b = 0x58});
ff.setColor(@enumFromInt(10), ff.RGB{.r = 0x6c, .g = 0x70, .b = 0x6c});
ff.setColor(@enumFromInt(11), ff.RGB{.r = 0x88, .g = 0x80, .b = 0x78});
ff.setColor(@enumFromInt(12), ff.RGB{.r = 0xa4, .g = 0x94, .b = 0x84});
ff.setColor(@enumFromInt(13), ff.RGB{.r = 0xc4, .g = 0xac, .b = 0x9c});
ff.setColor(@enumFromInt(14), ff.RGB{.r = 0xd8, .g = 0xb0, .b = 0xa8});
ff.setColor(@enumFromInt(15), ff.RGB{.r = 0xec, .g = 0xd4, .b = 0xd0});
ff.setColor(@enumFromInt(16), ff.RGB{.r = 0xfc, .g = 0xfc, .b = 0xfc});
}
🐀 C
#include "./vendor/firefly/firefly.c"
BOOT void boot()
{
set_colors();
}
void set_colors()
{
// https://lospec.com/palette-list/darkseed-16
RGB color1 = {0x00, 0x00, 0x00};
set_color(1, color1);
RGB color2 = {0x00, 0x14, 0x18};
set_color(2, color2);
RGB color3 = {0x00, 0x20, 0x24};
set_color(3, color3);
RGB color4 = {0x00, 0x2c, 0x38};
set_color(4, color4);
RGB color5 = {0x14, 0x34, 0x44};
set_color(5, color5);
RGB color6 = {0x44, 0x34, 0x44};
set_color(6, color6);
RGB color7 = {0x58, 0x3c, 0x48};
set_color(7, color7);
RGB color8 = {0x6c, 0x4c, 0x44};
set_color(8, color8);
RGB color9 = {0x80, 0x60, 0x58};
set_color(9, color9);
RGB color10 = {0x6c, 0x70, 0x6c};
set_color(10, color10);
RGB color11 = {0x88, 0x80, 0x78};
set_color(11, color11);
RGB color12 = {0xa4, 0x94, 0x84};
set_color(12, color12);
RGB color13 = {0xc4, 0xac, 0x9c};
set_color(13, color13);
RGB color14 = {0xd8, 0xb0, 0xa8};
set_color(14, color14);
RGB color15 = {0xec, 0xd4, 0xd0};
set_color(15, color15);
RGB color16 = {0xfc, 0xfc, 0xfc};
set_color(16, color16);
}
➕ C++
#include "./vendor/firefly/firefly.c"
BOOT void boot()
{
set_colors();
}
void set_colors()
{
// https://lospec.com/palette-list/darkseed-16
set_color(1, {0x00, 0x00, 0x00});
set_color(2, {0x00, 0x14, 0x18});
set_color(3, {0x00, 0x20, 0x24});
set_color(4, {0x00, 0x2c, 0x38});
set_color(5, {0x14, 0x34, 0x44});
set_color(6, {0x44, 0x34, 0x44});
set_color(7, {0x58, 0x3c, 0x48});
set_color(8, {0x6c, 0x4c, 0x44});
set_color(9, {0x80, 0x60, 0x58});
set_color(10, {0x6c, 0x70, 0x6c});
set_color(11, {0x88, 0x80, 0x78});
set_color(12, {0xa4, 0x94, 0x84});
set_color(13, {0xc4, 0xac, 0x9c});
set_color(14, {0xd8, 0xb0, 0xa8});
set_color(15, {0xec, 0xd4, 0xd0});
set_color(16, {0xfc, 0xfc, 0xfc});
}
🐰 MoonBit
///|
using @firefly {type Color, type RGB}
///|
pub fn boot() -> Unit {
set_colors()
}
///|
fn set_colors() -> Unit {
// https://lospec.com/palette-list/darkseed-16
@firefly.set_color(Color::from_int(1), RGB::new(0x00, 0x00, 0x00));
@firefly.set_color(Color::from_int(2), RGB::new(0x00, 0x14, 0x18));
@firefly.set_color(Color::from_int(3), RGB::new(0x00, 0x20, 0x24));
@firefly.set_color(Color::from_int(4), RGB::new(0x00, 0x2c, 0x38));
@firefly.set_color(Color::from_int(5), RGB::new(0x14, 0x34, 0x44));
@firefly.set_color(Color::from_int(6), RGB::new(0x44, 0x34, 0x44));
@firefly.set_color(Color::from_int(7), RGB::new(0x58, 0x3c, 0x48));
@firefly.set_color(Color::from_int(8), RGB::new(0x6c, 0x4c, 0x44));
@firefly.set_color(Color::from_int(9), RGB::new(0x80, 0x60, 0x58));
@firefly.set_color(Color::from_int(10), RGB::new(0x6c, 0x70, 0x6c));
@firefly.set_color(Color::from_int(11), RGB::new(0x88, 0x80, 0x78));
@firefly.set_color(Color::from_int(12), RGB::new(0xa4, 0x94, 0x84));
@firefly.set_color(Color::from_int(13), RGB::new(0xc4, 0xac, 0x9c));
@firefly.set_color(Color::from_int(14), RGB::new(0xd8, 0xb0, 0xa8));
@firefly.set_color(Color::from_int(15), RGB::new(0xec, 0xd4, 0xd0));
@firefly.set_color(Color::from_int(16), RGB::new(0xfc, 0xfc, 0xfc));
}
🌙 Lua
function boot()
set_colors()
end
function set_colors()
-- https://lospec.com/palette-list/darkseed-16
firefly.set_color(1, {r=0x00, g=0x00, b=0x00});
firefly.set_color(2, {r=0x00, g=0x14, b=0x18});
firefly.set_color(3, {r=0x00, g=0x20, b=0x24});
firefly.set_color(4, {r=0x00, g=0x2c, b=0x38});
firefly.set_color(5, {r=0x14, g=0x34, b=0x44});
firefly.set_color(6, {r=0x44, g=0x34, b=0x44});
firefly.set_color(7, {r=0x58, g=0x3c, b=0x48});
firefly.set_color(8, {r=0x6c, g=0x4c, b=0x44});
firefly.set_color(9, {r=0x80, g=0x60, b=0x58});
firefly.set_color(10, {r=0x6c, g=0x70, b=0x6c});
firefly.set_color(11, {r=0x88, g=0x80, b=0x78});
firefly.set_color(12, {r=0xa4, g=0x94, b=0x84});
firefly.set_color(13, {r=0xc4, g=0xac, b=0x9c});
firefly.set_color(14, {r=0xd8, g=0xb0, b=0xa8});
firefly.set_color(15, {r=0xec, g=0xd4, b=0xd0});
firefly.set_color(16, {r=0xfc, g=0xfc, b=0xfc});
end