Skip to content

Commit

Permalink
fix: apply color to svg files
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Mar 28, 2024
1 parent 47ca57a commit 66edbdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ pub fn correlating_char(block: &[Rgba<u8>], config: &Config) -> String {
//return the correctly formatted/colored string depending on the target
match config.target {
//if no color, use default case
config::TargetType::Shell | config::TargetType::AnsiFile if config.color() => {
config::TargetType::Shell | config::TargetType::AnsiFile | config::TargetType::Svg
if config.color() =>
{
target::ansi::colored_char(red, green, blue, density_char, config.background_color())
}
config::TargetType::HtmlFile => {
Expand Down

0 comments on commit 66edbdb

Please sign in to comment.