Skip to content

Dahlia — a simple text formatting package, inspired by the game Minecraft.

License

Notifications You must be signed in to change notification settings

dahlia-lib/dahlia-gleam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package Version Hex Docs

Dahlia.gleam

A Gleam port of Dahlia — a simple text formatting package, inspired by the game Minecraft.

Exmaple

dahlia.new()
  |> dahlia.print("&aHello World")

Installation

If available on Hex this package can be added to your Gleam project:

gleam add dahlia

and its documentation can be found at https://hexdocs.pm/dahlia.

Color Codes

You can find a list of color codes on the minecraft wiki.

Command Description
&n Change the color to n
&~n Change the background color to n
&[#HEXNUM] Change the color to #HEXNUM
&~[#HEXNUM] Change the background color to #HEXNUM
\\& Display an &