The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Linear gradients and matrix tranform on gradients

Changes made to libbirdfont/Svg/Color.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/Svg/Color.vala +++ libbirdfont/Svg/Color.vala @@ -266,7 +266,8 @@ } public string to_string () { - return @"r: $r, g: $g, b: $b, a: $a"; + string alpha = Font.to_hex_code ((unichar) Math.rint (a * 254)); + return @"$(to_rgb_hex ())" + alpha; } public Color copy () {