Skip to content

Commit

Permalink
change the value for hex conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Jul 11, 2016
1 parent c79aa40 commit f7bbf2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/colorchooser/structure_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ define( ['structure_custom', 'css!plugins/colorchooser/farbtastic/farbtastic.css
color.substring(7);
break;
case 'rgb':
wData.bus_r = value[0] * 100 / 255.0;
wData.bus_g = value[1] * 100 / 255.0;
wData.bus_b = value[2] * 100 / 255.0;
wData.bus_r = value[0];
wData.bus_g = value[1];
wData.bus_b = value[2];
color = color.substring(0,1) +
toHex( value[0] )+
toHex( value[1] )+
toHex( value[2] )+
toHex( value[0]*255/100 )+
toHex( value[1]*255/100 )+
toHex( value[2]*255/100 )+
color.substring(7);
break;
}
Expand Down

0 comments on commit f7bbf2c

Please sign in to comment.