[Vala] Convert RGB color value to HEX
- From: Satyajit Sahoo <satyajit happy gmail com>
- To: vala-list gnome org
- Subject: [Vala] Convert RGB color value to HEX
- Date: Mon, 3 Sep 2012 15:43:50 +0530
Hi. I need to get color value in HEX in my vala program.
Basically, I get a color expression like this,
rgb(red, green, blue) or rgba(red, green, blue, alpha)
But I need to convert it into a format #rrggbb
I cannot seem to understand how to do it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]