Clone in a terminal:
Commit da24ac7
Johan Mattsson - 2019-07-22T13:30:32+00:00
da24ac77ff8891002f4cec8a15543d5962213942johan.mattsson.m@gmail.com

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

Changed files (1)

Diff

diff --git a/libbirdfont/Color.vala b/libbirdfont/Color.valaindex 0924b59..f138eb2 100644--- a/libbirdfont/Color.vala+++ b/libbirdfont/Color.vala@@ -215,9 +215,9 @@ public class Color {  	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; 	} }

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112