×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Massimo Zappino
Added: Apr 21, 2016 6:50 AM
Modified: Aug 27, 2017 3:33 PM
Views: 17
Tags: color hex rgb
  1. private String colorToHEx(Color color) {
  2.     return String.format("#%02x%02x%02x", color.getRed(), color.getGreen(), color.getBlue());
  3. }