This commit is contained in:
Max Bradbury 2021-05-17 13:21:12 +01:00
parent d66da61f70
commit a734683772
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ impl Palette {
Palette { name, colours }
}
/// JASC .pal format (Paint Shop Pro)
pub fn to_jasc(&self) -> String {
let colours: Vec<String> = self.colours.iter().map(|colour|
format!("{} {} {}", colour.red, colour.green, colour.blue)