The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Merge branch 'master' of github.com:johanmattssonm/birdfont

These changes was commited to the Birdfont repository Mon, 22 Jul 2019 13:30:32 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 22 Jul 2019 13:30:32 +0000]

Updated Files

libbirdfont/Color.vala
--- a/libbirdfont/Color.vala +++ b/libbirdfont/Color.vala @@ -215,12 +215,12 @@ public string to_rgb_hex () { string s = "#"; - s += Font.to_hex_code ((unichar) Math.rint (r * 254)); - s += Font.to_hex_code ((unichar) Math.rint (g * 254)); - s += Font.to_hex_code ((unichar) Math.rint (b * 254)); + s += Font.to_hex_code ((unichar) Math.rint (r * 255)); + s += Font.to_hex_code ((unichar) Math.rint (g * 255)); + s += Font.to_hex_code ((unichar) Math.rint (b * 255)); return s; } } }