Clone in a terminal:
Commit 2068811
Johan Mattsson - 2019-05-15T22:06:52+00:00
2068811f7276a0422d404a78f001bc6e98ceb732johan.mattsson.m@gmail.com

Fix RGB hex code

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