A muted and muddy Palette with some "fleshy" accents that I created for my Lovecraft-themed Roguelike "The Ruins of of Calaworm".
#![no_std]
#![no_main]
use firefly_rust::*;
#[unsafe(no_mangle)]
extern "C" fn boot() {
set_colors();
}
fn set_colors() {
// https://lospec.com/palette-list/corruption-16
set_color(Color::from(1), RGB::new(0xe1, 0xd8, 0xcb));
set_color(Color::from(2), RGB::new(0xc3, 0xb1, 0x97));
set_color(Color::from(3), RGB::new(0xa6, 0x8a, 0x64));
set_color(Color::from(4), RGB::new(0x61, 0x4f, 0x38));
set_color(Color::from(5), RGB::new(0x36, 0x2c, 0x20));
set_color(Color::from(6), RGB::new(0x82, 0x99, 0x8f));
set_color(Color::from(7), RGB::new(0x52, 0x5e, 0x5a));
set_color(Color::from(8), RGB::new(0x3a, 0x40, 0x40));
set_color(Color::from(9), RGB::new(0x22, 0x23, 0x26));
set_color(Color::from(10), RGB::new(0x0a, 0x0d, 0x0a));
set_color(Color::from(11), RGB::new(0x20, 0x33, 0x1f));
set_color(Color::from(12), RGB::new(0x49, 0x58, 0x40));
set_color(Color::from(13), RGB::new(0x88, 0x8f, 0x72));
set_color(Color::from(14), RGB::new(0xc7, 0xc7, 0xa5));
set_color(Color::from(15), RGB::new(0xde, 0x8d, 0x7d));
set_color(Color::from(16), RGB::new(0x83, 0x31, 0x21));
}
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/corruption-16
firefly.SetColor(1, firefly.RGB{R: 0xe1, G: 0xd8, B: 0xcb})
firefly.SetColor(2, firefly.RGB{R: 0xc3, G: 0xb1, B: 0x97})
firefly.SetColor(3, firefly.RGB{R: 0xa6, G: 0x8a, B: 0x64})
firefly.SetColor(4, firefly.RGB{R: 0x61, G: 0x4f, B: 0x38})
firefly.SetColor(5, firefly.RGB{R: 0x36, G: 0x2c, B: 0x20})
firefly.SetColor(6, firefly.RGB{R: 0x82, G: 0x99, B: 0x8f})
firefly.SetColor(7, firefly.RGB{R: 0x52, G: 0x5e, B: 0x5a})
firefly.SetColor(8, firefly.RGB{R: 0x3a, G: 0x40, B: 0x40})
firefly.SetColor(9, firefly.RGB{R: 0x22, G: 0x23, B: 0x26})
firefly.SetColor(10, firefly.RGB{R: 0x0a, G: 0x0d, B: 0x0a})
firefly.SetColor(11, firefly.RGB{R: 0x20, G: 0x33, B: 0x1f})
firefly.SetColor(12, firefly.RGB{R: 0x49, G: 0x58, B: 0x40})
firefly.SetColor(13, firefly.RGB{R: 0x88, G: 0x8f, B: 0x72})
firefly.SetColor(14, firefly.RGB{R: 0xc7, G: 0xc7, B: 0xa5})
firefly.SetColor(15, firefly.RGB{R: 0xde, G: 0x8d, B: 0x7d})
firefly.SetColor(16, firefly.RGB{R: 0x83, G: 0x31, B: 0x21})
}
const ff = @import("firefly");
pub export fn update() void {
setColors()
}
fn setColors() void {
// https://lospec.com/palette-list/corruption-16
ff.setColor(@enumFromInt(1), ff.RGB{.r = 0xe1, .g = 0xd8, .b = 0xcb});
ff.setColor(@enumFromInt(2), ff.RGB{.r = 0xc3, .g = 0xb1, .b = 0x97});
ff.setColor(@enumFromInt(3), ff.RGB{.r = 0xa6, .g = 0x8a, .b = 0x64});
ff.setColor(@enumFromInt(4), ff.RGB{.r = 0x61, .g = 0x4f, .b = 0x38});
ff.setColor(@enumFromInt(5), ff.RGB{.r = 0x36, .g = 0x2c, .b = 0x20});
ff.setColor(@enumFromInt(6), ff.RGB{.r = 0x82, .g = 0x99, .b = 0x8f});
ff.setColor(@enumFromInt(7), ff.RGB{.r = 0x52, .g = 0x5e, .b = 0x5a});
ff.setColor(@enumFromInt(8), ff.RGB{.r = 0x3a, .g = 0x40, .b = 0x40});
ff.setColor(@enumFromInt(9), ff.RGB{.r = 0x22, .g = 0x23, .b = 0x26});
ff.setColor(@enumFromInt(10), ff.RGB{.r = 0x0a, .g = 0x0d, .b = 0x0a});
ff.setColor(@enumFromInt(11), ff.RGB{.r = 0x20, .g = 0x33, .b = 0x1f});
ff.setColor(@enumFromInt(12), ff.RGB{.r = 0x49, .g = 0x58, .b = 0x40});
ff.setColor(@enumFromInt(13), ff.RGB{.r = 0x88, .g = 0x8f, .b = 0x72});
ff.setColor(@enumFromInt(14), ff.RGB{.r = 0xc7, .g = 0xc7, .b = 0xa5});
ff.setColor(@enumFromInt(15), ff.RGB{.r = 0xde, .g = 0x8d, .b = 0x7d});
ff.setColor(@enumFromInt(16), ff.RGB{.r = 0x83, .g = 0x31, .b = 0x21});
}
#include "./vendor/firefly/firefly.c"
BOOT void boot()
{
set_colors();
}
void set_colors()
{
// https://lospec.com/palette-list/corruption-16
RGB color1 = {0xe1, 0xd8, 0xcb};
set_color(1, color1);
RGB color2 = {0xc3, 0xb1, 0x97};
set_color(2, color2);
RGB color3 = {0xa6, 0x8a, 0x64};
set_color(3, color3);
RGB color4 = {0x61, 0x4f, 0x38};
set_color(4, color4);
RGB color5 = {0x36, 0x2c, 0x20};
set_color(5, color5);
RGB color6 = {0x82, 0x99, 0x8f};
set_color(6, color6);
RGB color7 = {0x52, 0x5e, 0x5a};
set_color(7, color7);
RGB color8 = {0x3a, 0x40, 0x40};
set_color(8, color8);
RGB color9 = {0x22, 0x23, 0x26};
set_color(9, color9);
RGB color10 = {0x0a, 0x0d, 0x0a};
set_color(10, color10);
RGB color11 = {0x20, 0x33, 0x1f};
set_color(11, color11);
RGB color12 = {0x49, 0x58, 0x40};
set_color(12, color12);
RGB color13 = {0x88, 0x8f, 0x72};
set_color(13, color13);
RGB color14 = {0xc7, 0xc7, 0xa5};
set_color(14, color14);
RGB color15 = {0xde, 0x8d, 0x7d};
set_color(15, color15);
RGB color16 = {0x83, 0x31, 0x21};
set_color(16, color16);
}
#include "./vendor/firefly/firefly.c"
BOOT void boot()
{
set_colors();
}
void set_colors()
{
// https://lospec.com/palette-list/corruption-16
set_color(1, {0xe1, 0xd8, 0xcb});
set_color(2, {0xc3, 0xb1, 0x97});
set_color(3, {0xa6, 0x8a, 0x64});
set_color(4, {0x61, 0x4f, 0x38});
set_color(5, {0x36, 0x2c, 0x20});
set_color(6, {0x82, 0x99, 0x8f});
set_color(7, {0x52, 0x5e, 0x5a});
set_color(8, {0x3a, 0x40, 0x40});
set_color(9, {0x22, 0x23, 0x26});
set_color(10, {0x0a, 0x0d, 0x0a});
set_color(11, {0x20, 0x33, 0x1f});
set_color(12, {0x49, 0x58, 0x40});
set_color(13, {0x88, 0x8f, 0x72});
set_color(14, {0xc7, 0xc7, 0xa5});
set_color(15, {0xde, 0x8d, 0x7d});
set_color(16, {0x83, 0x31, 0x21});
}
///|
using @firefly {type Color, type RGB}
///|
pub fn boot() -> Unit {
set_colors()
}
///|
fn set_colors() -> Unit {
// https://lospec.com/palette-list/corruption-16
@firefly.set_color(Color::from_int(1), RGB::new(0xe1, 0xd8, 0xcb));
@firefly.set_color(Color::from_int(2), RGB::new(0xc3, 0xb1, 0x97));
@firefly.set_color(Color::from_int(3), RGB::new(0xa6, 0x8a, 0x64));
@firefly.set_color(Color::from_int(4), RGB::new(0x61, 0x4f, 0x38));
@firefly.set_color(Color::from_int(5), RGB::new(0x36, 0x2c, 0x20));
@firefly.set_color(Color::from_int(6), RGB::new(0x82, 0x99, 0x8f));
@firefly.set_color(Color::from_int(7), RGB::new(0x52, 0x5e, 0x5a));
@firefly.set_color(Color::from_int(8), RGB::new(0x3a, 0x40, 0x40));
@firefly.set_color(Color::from_int(9), RGB::new(0x22, 0x23, 0x26));
@firefly.set_color(Color::from_int(10), RGB::new(0x0a, 0x0d, 0x0a));
@firefly.set_color(Color::from_int(11), RGB::new(0x20, 0x33, 0x1f));
@firefly.set_color(Color::from_int(12), RGB::new(0x49, 0x58, 0x40));
@firefly.set_color(Color::from_int(13), RGB::new(0x88, 0x8f, 0x72));
@firefly.set_color(Color::from_int(14), RGB::new(0xc7, 0xc7, 0xa5));
@firefly.set_color(Color::from_int(15), RGB::new(0xde, 0x8d, 0x7d));
@firefly.set_color(Color::from_int(16), RGB::new(0x83, 0x31, 0x21));
}
function boot()
set_colors()
end
function set_colors()
-- https://lospec.com/palette-list/corruption-16
firefly.set_color(1, {r=0xe1, g=0xd8, b=0xcb});
firefly.set_color(2, {r=0xc3, g=0xb1, b=0x97});
firefly.set_color(3, {r=0xa6, g=0x8a, b=0x64});
firefly.set_color(4, {r=0x61, g=0x4f, b=0x38});
firefly.set_color(5, {r=0x36, g=0x2c, b=0x20});
firefly.set_color(6, {r=0x82, g=0x99, b=0x8f});
firefly.set_color(7, {r=0x52, g=0x5e, b=0x5a});
firefly.set_color(8, {r=0x3a, g=0x40, b=0x40});
firefly.set_color(9, {r=0x22, g=0x23, b=0x26});
firefly.set_color(10, {r=0x0a, g=0x0d, b=0x0a});
firefly.set_color(11, {r=0x20, g=0x33, b=0x1f});
firefly.set_color(12, {r=0x49, g=0x58, b=0x40});
firefly.set_color(13, {r=0x88, g=0x8f, b=0x72});
firefly.set_color(14, {r=0xc7, g=0xc7, b=0xa5});
firefly.set_color(15, {r=0xde, g=0x8d, b=0x7d});
firefly.set_color(16, {r=0x83, g=0x31, b=0x21});
end