The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

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

Changes made to libbirdfont/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/Color.vala +++ 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; } } }