add palette name and colour count for GIMP palette
This commit is contained in:
parent
c1be226956
commit
955645415d
|
@ -101,8 +101,11 @@ impl Palette {
|
||||||
)
|
)
|
||||||
}).collect();
|
}).collect();
|
||||||
|
|
||||||
// todo re-insert original comments
|
// todo fix palette description? does it matter?
|
||||||
format!("GIMP Palette\r\n{}\r\n", colours.join("\r\n"))
|
format!(
|
||||||
|
"GIMP Palette\r\n#Palette Name: {}\r\n#Colors: {}\r\n{}\r\n",
|
||||||
|
self.name, colours.len(), colours.join("\r\n")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Paint.net .txt format
|
/// Paint.net .txt format
|
||||||
|
|
Loading…
Reference in New Issue