Palettes / WoodSpark

WoodSpark by Anubi

WoodSpark is a general purpose palette with 16 vibrant, saturated colors that aims at providing just enough colors to make essentially anything come true. May it be from the main Red, Green and Blue colors, or others like Gray, Pink and Brown, it has all the basics covered to get you going.

🦀 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/woodspark
    set_color(Color::from(1), RGB::new(0xf5, 0xee, 0xb0));
    set_color(Color::from(2), RGB::new(0xfa, 0xbf, 0x61));
    set_color(Color::from(3), RGB::new(0xe0, 0x8d, 0x51));
    set_color(Color::from(4), RGB::new(0x8a, 0x58, 0x65));
    set_color(Color::from(5), RGB::new(0x45, 0x2b, 0x3f));
    set_color(Color::from(6), RGB::new(0x2c, 0x5e, 0x3b));
    set_color(Color::from(7), RGB::new(0x60, 0x9c, 0x4f));
    set_color(Color::from(8), RGB::new(0xc6, 0xcc, 0x54));
    set_color(Color::from(9), RGB::new(0x78, 0xc2, 0xd6));
    set_color(Color::from(10), RGB::new(0x54, 0x79, 0xb0));
    set_color(Color::from(11), RGB::new(0x56, 0x54, 0x6e));
    set_color(Color::from(12), RGB::new(0x83, 0x9f, 0xa6));
    set_color(Color::from(13), RGB::new(0xe0, 0xd3, 0xc8));
    set_color(Color::from(14), RGB::new(0xf0, 0x5b, 0x5b));
    set_color(Color::from(15), RGB::new(0x8f, 0x32, 0x5f));
    set_color(Color::from(16), RGB::new(0xeb, 0x6c, 0x98));
}

🏃 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/woodspark
    firefly.SetColor(1, firefly.RGB{R: 0xf5, G: 0xee, B: 0xb0})
    firefly.SetColor(2, firefly.RGB{R: 0xfa, G: 0xbf, B: 0x61})
    firefly.SetColor(3, firefly.RGB{R: 0xe0, G: 0x8d, B: 0x51})
    firefly.SetColor(4, firefly.RGB{R: 0x8a, G: 0x58, B: 0x65})
    firefly.SetColor(5, firefly.RGB{R: 0x45, G: 0x2b, B: 0x3f})
    firefly.SetColor(6, firefly.RGB{R: 0x2c, G: 0x5e, B: 0x3b})
    firefly.SetColor(7, firefly.RGB{R: 0x60, G: 0x9c, B: 0x4f})
    firefly.SetColor(8, firefly.RGB{R: 0xc6, G: 0xcc, B: 0x54})
    firefly.SetColor(9, firefly.RGB{R: 0x78, G: 0xc2, B: 0xd6})
    firefly.SetColor(10, firefly.RGB{R: 0x54, G: 0x79, B: 0xb0})
    firefly.SetColor(11, firefly.RGB{R: 0x56, G: 0x54, B: 0x6e})
    firefly.SetColor(12, firefly.RGB{R: 0x83, G: 0x9f, B: 0xa6})
    firefly.SetColor(13, firefly.RGB{R: 0xe0, G: 0xd3, B: 0xc8})
    firefly.SetColor(14, firefly.RGB{R: 0xf0, G: 0x5b, B: 0x5b})
    firefly.SetColor(15, firefly.RGB{R: 0x8f, G: 0x32, B: 0x5f})
    firefly.SetColor(16, firefly.RGB{R: 0xeb, G: 0x6c, B: 0x98})
}

⚡️ Zig

const ff = @import("firefly");

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

fn setColors() void {
    // https://lospec.com/palette-list/woodspark
    ff.setColor(@enumFromInt(1), ff.RGB{.r = 0xf5, .g = 0xee, .b = 0xb0});
    ff.setColor(@enumFromInt(2), ff.RGB{.r = 0xfa, .g = 0xbf, .b = 0x61});
    ff.setColor(@enumFromInt(3), ff.RGB{.r = 0xe0, .g = 0x8d, .b = 0x51});
    ff.setColor(@enumFromInt(4), ff.RGB{.r = 0x8a, .g = 0x58, .b = 0x65});
    ff.setColor(@enumFromInt(5), ff.RGB{.r = 0x45, .g = 0x2b, .b = 0x3f});
    ff.setColor(@enumFromInt(6), ff.RGB{.r = 0x2c, .g = 0x5e, .b = 0x3b});
    ff.setColor(@enumFromInt(7), ff.RGB{.r = 0x60, .g = 0x9c, .b = 0x4f});
    ff.setColor(@enumFromInt(8), ff.RGB{.r = 0xc6, .g = 0xcc, .b = 0x54});
    ff.setColor(@enumFromInt(9), ff.RGB{.r = 0x78, .g = 0xc2, .b = 0xd6});
    ff.setColor(@enumFromInt(10), ff.RGB{.r = 0x54, .g = 0x79, .b = 0xb0});
    ff.setColor(@enumFromInt(11), ff.RGB{.r = 0x56, .g = 0x54, .b = 0x6e});
    ff.setColor(@enumFromInt(12), ff.RGB{.r = 0x83, .g = 0x9f, .b = 0xa6});
    ff.setColor(@enumFromInt(13), ff.RGB{.r = 0xe0, .g = 0xd3, .b = 0xc8});
    ff.setColor(@enumFromInt(14), ff.RGB{.r = 0xf0, .g = 0x5b, .b = 0x5b});
    ff.setColor(@enumFromInt(15), ff.RGB{.r = 0x8f, .g = 0x32, .b = 0x5f});
    ff.setColor(@enumFromInt(16), ff.RGB{.r = 0xeb, .g = 0x6c, .b = 0x98});
}

🐀 C

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

BOOT void boot()
{
    set_colors();
}

void set_colors()
{
    // https://lospec.com/palette-list/woodspark
    RGB color1 = {0xf5, 0xee, 0xb0};
    set_color(1, color1);
    RGB color2 = {0xfa, 0xbf, 0x61};
    set_color(2, color2);
    RGB color3 = {0xe0, 0x8d, 0x51};
    set_color(3, color3);
    RGB color4 = {0x8a, 0x58, 0x65};
    set_color(4, color4);
    RGB color5 = {0x45, 0x2b, 0x3f};
    set_color(5, color5);
    RGB color6 = {0x2c, 0x5e, 0x3b};
    set_color(6, color6);
    RGB color7 = {0x60, 0x9c, 0x4f};
    set_color(7, color7);
    RGB color8 = {0xc6, 0xcc, 0x54};
    set_color(8, color8);
    RGB color9 = {0x78, 0xc2, 0xd6};
    set_color(9, color9);
    RGB color10 = {0x54, 0x79, 0xb0};
    set_color(10, color10);
    RGB color11 = {0x56, 0x54, 0x6e};
    set_color(11, color11);
    RGB color12 = {0x83, 0x9f, 0xa6};
    set_color(12, color12);
    RGB color13 = {0xe0, 0xd3, 0xc8};
    set_color(13, color13);
    RGB color14 = {0xf0, 0x5b, 0x5b};
    set_color(14, color14);
    RGB color15 = {0x8f, 0x32, 0x5f};
    set_color(15, color15);
    RGB color16 = {0xeb, 0x6c, 0x98};
    set_color(16, color16);
}

➕ C++

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

BOOT void boot()
{
    set_colors();
}

void set_colors()
{
    // https://lospec.com/palette-list/woodspark
    set_color(1, {0xf5, 0xee, 0xb0});
    set_color(2, {0xfa, 0xbf, 0x61});
    set_color(3, {0xe0, 0x8d, 0x51});
    set_color(4, {0x8a, 0x58, 0x65});
    set_color(5, {0x45, 0x2b, 0x3f});
    set_color(6, {0x2c, 0x5e, 0x3b});
    set_color(7, {0x60, 0x9c, 0x4f});
    set_color(8, {0xc6, 0xcc, 0x54});
    set_color(9, {0x78, 0xc2, 0xd6});
    set_color(10, {0x54, 0x79, 0xb0});
    set_color(11, {0x56, 0x54, 0x6e});
    set_color(12, {0x83, 0x9f, 0xa6});
    set_color(13, {0xe0, 0xd3, 0xc8});
    set_color(14, {0xf0, 0x5b, 0x5b});
    set_color(15, {0x8f, 0x32, 0x5f});
    set_color(16, {0xeb, 0x6c, 0x98});
}

🐰 MoonBit

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

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

///|
fn set_colors() -> Unit {
  // https://lospec.com/palette-list/woodspark
  @firefly.set_color(Color::from_int(1), RGB::new(0xf5, 0xee, 0xb0));
  @firefly.set_color(Color::from_int(2), RGB::new(0xfa, 0xbf, 0x61));
  @firefly.set_color(Color::from_int(3), RGB::new(0xe0, 0x8d, 0x51));
  @firefly.set_color(Color::from_int(4), RGB::new(0x8a, 0x58, 0x65));
  @firefly.set_color(Color::from_int(5), RGB::new(0x45, 0x2b, 0x3f));
  @firefly.set_color(Color::from_int(6), RGB::new(0x2c, 0x5e, 0x3b));
  @firefly.set_color(Color::from_int(7), RGB::new(0x60, 0x9c, 0x4f));
  @firefly.set_color(Color::from_int(8), RGB::new(0xc6, 0xcc, 0x54));
  @firefly.set_color(Color::from_int(9), RGB::new(0x78, 0xc2, 0xd6));
  @firefly.set_color(Color::from_int(10), RGB::new(0x54, 0x79, 0xb0));
  @firefly.set_color(Color::from_int(11), RGB::new(0x56, 0x54, 0x6e));
  @firefly.set_color(Color::from_int(12), RGB::new(0x83, 0x9f, 0xa6));
  @firefly.set_color(Color::from_int(13), RGB::new(0xe0, 0xd3, 0xc8));
  @firefly.set_color(Color::from_int(14), RGB::new(0xf0, 0x5b, 0x5b));
  @firefly.set_color(Color::from_int(15), RGB::new(0x8f, 0x32, 0x5f));
  @firefly.set_color(Color::from_int(16), RGB::new(0xeb, 0x6c, 0x98));
}

🌙 Lua

function boot()
  set_colors()
end

function set_colors()
  -- https://lospec.com/palette-list/woodspark
  firefly.set_color(1, {r=0xf5, g=0xee, b=0xb0});
  firefly.set_color(2, {r=0xfa, g=0xbf, b=0x61});
  firefly.set_color(3, {r=0xe0, g=0x8d, b=0x51});
  firefly.set_color(4, {r=0x8a, g=0x58, b=0x65});
  firefly.set_color(5, {r=0x45, g=0x2b, b=0x3f});
  firefly.set_color(6, {r=0x2c, g=0x5e, b=0x3b});
  firefly.set_color(7, {r=0x60, g=0x9c, b=0x4f});
  firefly.set_color(8, {r=0xc6, g=0xcc, b=0x54});
  firefly.set_color(9, {r=0x78, g=0xc2, b=0xd6});
  firefly.set_color(10, {r=0x54, g=0x79, b=0xb0});
  firefly.set_color(11, {r=0x56, g=0x54, b=0x6e});
  firefly.set_color(12, {r=0x83, g=0x9f, b=0xa6});
  firefly.set_color(13, {r=0xe0, g=0xd3, b=0xc8});
  firefly.set_color(14, {r=0xf0, g=0x5b, b=0x5b});
  firefly.set_color(15, {r=0x8f, g=0x32, b=0x5f});
  firefly.set_color(16, {r=0xeb, g=0x6c, b=0x98});
end