Palettes / Pastel Pop-16 Color

Pastel Pop-16 Color by AxulArt

Although it says "16 colors", there are really only 15 colors, since one of those colors is used for transparencies , I wanted to create a color palette that could achieve many harmonious combinations with just a few colors. I guess it would be ideal for fantasy consoles (if you don't mind pastel tones) or for retro aesthetics like the GameBoy Color  . You can see more of my art at: https://axulart.tumblr.com/ and https://axulart.itch.io/

🦀 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/pastel-pop-16-color
    set_color(Color::from(1), RGB::new(0x00, 0x00, 0x00));
    set_color(Color::from(2), RGB::new(0xff, 0xfc, 0xff));
    set_color(Color::from(3), RGB::new(0xe6, 0xe1, 0xf2));
    set_color(Color::from(4), RGB::new(0xb2, 0xb7, 0xe1));
    set_color(Color::from(5), RGB::new(0x59, 0x5b, 0x7d));
    set_color(Color::from(6), RGB::new(0x7b, 0x8a, 0xc6));
    set_color(Color::from(7), RGB::new(0xff, 0xd9, 0xf4));
    set_color(Color::from(8), RGB::new(0xe1, 0xad, 0xc3));
    set_color(Color::from(9), RGB::new(0xad, 0x80, 0xa6));
    set_color(Color::from(10), RGB::new(0xfb, 0xa2, 0xd7));
    set_color(Color::from(11), RGB::new(0xfa, 0xe0, 0xc7));
    set_color(Color::from(12), RGB::new(0xf0, 0xab, 0xab));
    set_color(Color::from(13), RGB::new(0x97, 0xc4, 0xaa));
    set_color(Color::from(14), RGB::new(0xbf, 0xed, 0xf5));
    set_color(Color::from(15), RGB::new(0x73, 0xc9, 0xeb));
    set_color(Color::from(16), RGB::new(0xca, 0xaf, 0xf5));
}

🏃 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/pastel-pop-16-color
    firefly.SetColor(1, firefly.RGB{R: 0x00, G: 0x00, B: 0x00})
    firefly.SetColor(2, firefly.RGB{R: 0xff, G: 0xfc, B: 0xff})
    firefly.SetColor(3, firefly.RGB{R: 0xe6, G: 0xe1, B: 0xf2})
    firefly.SetColor(4, firefly.RGB{R: 0xb2, G: 0xb7, B: 0xe1})
    firefly.SetColor(5, firefly.RGB{R: 0x59, G: 0x5b, B: 0x7d})
    firefly.SetColor(6, firefly.RGB{R: 0x7b, G: 0x8a, B: 0xc6})
    firefly.SetColor(7, firefly.RGB{R: 0xff, G: 0xd9, B: 0xf4})
    firefly.SetColor(8, firefly.RGB{R: 0xe1, G: 0xad, B: 0xc3})
    firefly.SetColor(9, firefly.RGB{R: 0xad, G: 0x80, B: 0xa6})
    firefly.SetColor(10, firefly.RGB{R: 0xfb, G: 0xa2, B: 0xd7})
    firefly.SetColor(11, firefly.RGB{R: 0xfa, G: 0xe0, B: 0xc7})
    firefly.SetColor(12, firefly.RGB{R: 0xf0, G: 0xab, B: 0xab})
    firefly.SetColor(13, firefly.RGB{R: 0x97, G: 0xc4, B: 0xaa})
    firefly.SetColor(14, firefly.RGB{R: 0xbf, G: 0xed, B: 0xf5})
    firefly.SetColor(15, firefly.RGB{R: 0x73, G: 0xc9, B: 0xeb})
    firefly.SetColor(16, firefly.RGB{R: 0xca, G: 0xaf, B: 0xf5})
}

⚡️ Zig

const ff = @import("firefly");

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

fn setColors() void {
    // https://lospec.com/palette-list/pastel-pop-16-color
    ff.setColor(@enumFromInt(1), ff.RGB{.r = 0x00, .g = 0x00, .b = 0x00});
    ff.setColor(@enumFromInt(2), ff.RGB{.r = 0xff, .g = 0xfc, .b = 0xff});
    ff.setColor(@enumFromInt(3), ff.RGB{.r = 0xe6, .g = 0xe1, .b = 0xf2});
    ff.setColor(@enumFromInt(4), ff.RGB{.r = 0xb2, .g = 0xb7, .b = 0xe1});
    ff.setColor(@enumFromInt(5), ff.RGB{.r = 0x59, .g = 0x5b, .b = 0x7d});
    ff.setColor(@enumFromInt(6), ff.RGB{.r = 0x7b, .g = 0x8a, .b = 0xc6});
    ff.setColor(@enumFromInt(7), ff.RGB{.r = 0xff, .g = 0xd9, .b = 0xf4});
    ff.setColor(@enumFromInt(8), ff.RGB{.r = 0xe1, .g = 0xad, .b = 0xc3});
    ff.setColor(@enumFromInt(9), ff.RGB{.r = 0xad, .g = 0x80, .b = 0xa6});
    ff.setColor(@enumFromInt(10), ff.RGB{.r = 0xfb, .g = 0xa2, .b = 0xd7});
    ff.setColor(@enumFromInt(11), ff.RGB{.r = 0xfa, .g = 0xe0, .b = 0xc7});
    ff.setColor(@enumFromInt(12), ff.RGB{.r = 0xf0, .g = 0xab, .b = 0xab});
    ff.setColor(@enumFromInt(13), ff.RGB{.r = 0x97, .g = 0xc4, .b = 0xaa});
    ff.setColor(@enumFromInt(14), ff.RGB{.r = 0xbf, .g = 0xed, .b = 0xf5});
    ff.setColor(@enumFromInt(15), ff.RGB{.r = 0x73, .g = 0xc9, .b = 0xeb});
    ff.setColor(@enumFromInt(16), ff.RGB{.r = 0xca, .g = 0xaf, .b = 0xf5});
}

🐀 C

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

BOOT void boot()
{
    set_colors();
}

void set_colors()
{
    // https://lospec.com/palette-list/pastel-pop-16-color
    RGB color1 = {0x00, 0x00, 0x00};
    set_color(1, color1);
    RGB color2 = {0xff, 0xfc, 0xff};
    set_color(2, color2);
    RGB color3 = {0xe6, 0xe1, 0xf2};
    set_color(3, color3);
    RGB color4 = {0xb2, 0xb7, 0xe1};
    set_color(4, color4);
    RGB color5 = {0x59, 0x5b, 0x7d};
    set_color(5, color5);
    RGB color6 = {0x7b, 0x8a, 0xc6};
    set_color(6, color6);
    RGB color7 = {0xff, 0xd9, 0xf4};
    set_color(7, color7);
    RGB color8 = {0xe1, 0xad, 0xc3};
    set_color(8, color8);
    RGB color9 = {0xad, 0x80, 0xa6};
    set_color(9, color9);
    RGB color10 = {0xfb, 0xa2, 0xd7};
    set_color(10, color10);
    RGB color11 = {0xfa, 0xe0, 0xc7};
    set_color(11, color11);
    RGB color12 = {0xf0, 0xab, 0xab};
    set_color(12, color12);
    RGB color13 = {0x97, 0xc4, 0xaa};
    set_color(13, color13);
    RGB color14 = {0xbf, 0xed, 0xf5};
    set_color(14, color14);
    RGB color15 = {0x73, 0xc9, 0xeb};
    set_color(15, color15);
    RGB color16 = {0xca, 0xaf, 0xf5};
    set_color(16, color16);
}

➕ C++

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

BOOT void boot()
{
    set_colors();
}

void set_colors()
{
    // https://lospec.com/palette-list/pastel-pop-16-color
    set_color(1, {0x00, 0x00, 0x00});
    set_color(2, {0xff, 0xfc, 0xff});
    set_color(3, {0xe6, 0xe1, 0xf2});
    set_color(4, {0xb2, 0xb7, 0xe1});
    set_color(5, {0x59, 0x5b, 0x7d});
    set_color(6, {0x7b, 0x8a, 0xc6});
    set_color(7, {0xff, 0xd9, 0xf4});
    set_color(8, {0xe1, 0xad, 0xc3});
    set_color(9, {0xad, 0x80, 0xa6});
    set_color(10, {0xfb, 0xa2, 0xd7});
    set_color(11, {0xfa, 0xe0, 0xc7});
    set_color(12, {0xf0, 0xab, 0xab});
    set_color(13, {0x97, 0xc4, 0xaa});
    set_color(14, {0xbf, 0xed, 0xf5});
    set_color(15, {0x73, 0xc9, 0xeb});
    set_color(16, {0xca, 0xaf, 0xf5});
}

🐰 MoonBit

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

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

///|
fn set_colors() -> Unit {
  // https://lospec.com/palette-list/pastel-pop-16-color
  @firefly.set_color(Color::from_int(1), RGB::new(0x00, 0x00, 0x00));
  @firefly.set_color(Color::from_int(2), RGB::new(0xff, 0xfc, 0xff));
  @firefly.set_color(Color::from_int(3), RGB::new(0xe6, 0xe1, 0xf2));
  @firefly.set_color(Color::from_int(4), RGB::new(0xb2, 0xb7, 0xe1));
  @firefly.set_color(Color::from_int(5), RGB::new(0x59, 0x5b, 0x7d));
  @firefly.set_color(Color::from_int(6), RGB::new(0x7b, 0x8a, 0xc6));
  @firefly.set_color(Color::from_int(7), RGB::new(0xff, 0xd9, 0xf4));
  @firefly.set_color(Color::from_int(8), RGB::new(0xe1, 0xad, 0xc3));
  @firefly.set_color(Color::from_int(9), RGB::new(0xad, 0x80, 0xa6));
  @firefly.set_color(Color::from_int(10), RGB::new(0xfb, 0xa2, 0xd7));
  @firefly.set_color(Color::from_int(11), RGB::new(0xfa, 0xe0, 0xc7));
  @firefly.set_color(Color::from_int(12), RGB::new(0xf0, 0xab, 0xab));
  @firefly.set_color(Color::from_int(13), RGB::new(0x97, 0xc4, 0xaa));
  @firefly.set_color(Color::from_int(14), RGB::new(0xbf, 0xed, 0xf5));
  @firefly.set_color(Color::from_int(15), RGB::new(0x73, 0xc9, 0xeb));
  @firefly.set_color(Color::from_int(16), RGB::new(0xca, 0xaf, 0xf5));
}

🌙 Lua

function boot()
  set_colors()
end

function set_colors()
  -- https://lospec.com/palette-list/pastel-pop-16-color
  firefly.set_color(1, {r=0x00, g=0x00, b=0x00});
  firefly.set_color(2, {r=0xff, g=0xfc, b=0xff});
  firefly.set_color(3, {r=0xe6, g=0xe1, b=0xf2});
  firefly.set_color(4, {r=0xb2, g=0xb7, b=0xe1});
  firefly.set_color(5, {r=0x59, g=0x5b, b=0x7d});
  firefly.set_color(6, {r=0x7b, g=0x8a, b=0xc6});
  firefly.set_color(7, {r=0xff, g=0xd9, b=0xf4});
  firefly.set_color(8, {r=0xe1, g=0xad, b=0xc3});
  firefly.set_color(9, {r=0xad, g=0x80, b=0xa6});
  firefly.set_color(10, {r=0xfb, g=0xa2, b=0xd7});
  firefly.set_color(11, {r=0xfa, g=0xe0, b=0xc7});
  firefly.set_color(12, {r=0xf0, g=0xab, b=0xab});
  firefly.set_color(13, {r=0x97, g=0xc4, b=0xaa});
  firefly.set_color(14, {r=0xbf, g=0xed, b=0xf5});
  firefly.set_color(15, {r=0x73, g=0xc9, b=0xeb});
  firefly.set_color(16, {r=0xca, g=0xaf, b=0xf5});
end